Class PxBoxGeometry


public class PxBoxGeometry extends PxGeometry
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxBoxGeometry

      protected PxBoxGeometry()
    • PxBoxGeometry

      protected PxBoxGeometry(long address)
    • PxBoxGeometry

      public PxBoxGeometry(float hx, float hy, float hz)
      Parameters:
      hx - WebIDL type: float
      hy - WebIDL type: float
      hz - WebIDL type: float
  • Method Details

    • wrapPointer

      public static PxBoxGeometry wrapPointer(long address)
    • arrayGet

      public static PxBoxGeometry arrayGet(long baseAddress, int index)
    • createAt

      public static PxBoxGeometry createAt(long address, float hx, float hy, float hz)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      hx - WebIDL type: float
      hy - WebIDL type: float
      hz - WebIDL type: float
      Returns:
      Stack allocated object of PxBoxGeometry
    • createAt

      public static <T> PxBoxGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, float hx, float hy, float hz)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      hx - WebIDL type: float
      hy - WebIDL type: float
      hz - WebIDL type: float
      Returns:
      Stack allocated object of PxBoxGeometry
    • destroy

      public void destroy()
      Overrides:
      destroy in class PxGeometry
    • getHalfExtents

      public PxVec3 getHalfExtents()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setHalfExtents

      public void setHalfExtents(PxVec3 value)
      Parameters:
      value - WebIDL type: PxVec3 [Value]