Class ConvexMeshSupport


public class ConvexMeshSupport extends Support
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • ConvexMeshSupport

      protected ConvexMeshSupport()
    • ConvexMeshSupport

      protected ConvexMeshSupport(long address)
    • ConvexMeshSupport

      public ConvexMeshSupport(PxConvexMesh convexMesh)
      Parameters:
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
    • ConvexMeshSupport

      public ConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale)
      Parameters:
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
    • ConvexMeshSupport

      public ConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation)
      Parameters:
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      scaleRotation - WebIDL type: PxQuat [Const, Ref]
    • ConvexMeshSupport

      public ConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation, float margin)
      Parameters:
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      scaleRotation - WebIDL type: PxQuat [Const, Ref]
      margin - WebIDL type: float
  • Method Details

    • wrapPointer

      public static ConvexMeshSupport wrapPointer(long address)
    • arrayGet

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

      public static ConvexMeshSupport createAt(long address, PxConvexMesh convexMesh)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      Returns:
      Stack allocated object of ConvexMeshSupport
    • createAt

      public static <T> ConvexMeshSupport createAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh)
      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.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      Returns:
      Stack allocated object of ConvexMeshSupport
    • createAt

      public static ConvexMeshSupport createAt(long address, PxConvexMesh convexMesh, PxVec3 scale)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      Stack allocated object of ConvexMeshSupport
    • createAt

      public static <T> ConvexMeshSupport createAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh, PxVec3 scale)
      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.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      Returns:
      Stack allocated object of ConvexMeshSupport
    • createAt

      public static ConvexMeshSupport createAt(long address, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      scaleRotation - WebIDL type: PxQuat [Const, Ref]
      Returns:
      Stack allocated object of ConvexMeshSupport
    • createAt

      public static <T> ConvexMeshSupport createAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation)
      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.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      scaleRotation - WebIDL type: PxQuat [Const, Ref]
      Returns:
      Stack allocated object of ConvexMeshSupport
    • createAt

      public static ConvexMeshSupport createAt(long address, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation, float margin)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      scaleRotation - WebIDL type: PxQuat [Const, Ref]
      margin - WebIDL type: float
      Returns:
      Stack allocated object of ConvexMeshSupport
    • createAt

      public static <T> ConvexMeshSupport createAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation, float margin)
      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.
      convexMesh - WebIDL type: PxConvexMesh [Const, Ref]
      scale - WebIDL type: PxVec3 [Const, Ref]
      scaleRotation - WebIDL type: PxQuat [Const, Ref]
      margin - WebIDL type: float
      Returns:
      Stack allocated object of ConvexMeshSupport
    • destroy

      public void destroy()
      Overrides:
      destroy in class Support
    • getConvexMesh

      public PxConvexMesh getConvexMesh()
      Returns:
      WebIDL type: PxConvexMesh [Platforms=windows;linux;macos]
    • getScale

      public PxVec3 getScale()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setScale

      public void setScale(PxVec3 value)
      Parameters:
      value - WebIDL type: PxVec3 [Value]
    • getScaleRotation

      public PxQuat getScaleRotation()
      Returns:
      WebIDL type: PxQuat [Value]
    • setScaleRotation

      public void setScaleRotation(PxQuat value)
      Parameters:
      value - WebIDL type: PxQuat [Value]
    • getMargin

      public float getMargin()
      Overrides:
      getMargin in class Support
      Returns:
      WebIDL type: float
    • setMargin

      public void setMargin(float value)
      Parameters:
      value - WebIDL type: float