java.lang.Object
physx.NativeObject
physx.extensions.Support
physx.extensions.ConvexMeshSupport
Pre-made support mapping for a convex mesh
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedConvexMeshSupport(long address) ConvexMeshSupport(PxConvexMesh convexMesh) Constructs a BoxSupport for a PxConvexMeshConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale) Constructs a BoxSupport for a PxConvexMeshConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation) Constructs a BoxSupport for a PxConvexMeshConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation, float margin) Constructs a BoxSupport for a PxConvexMesh -
Method Summary
Modifier and TypeMethodDescriptionstatic ConvexMeshSupportarrayGet(long baseAddress, int index) static ConvexMeshSupportcreateAt(long address, PxConvexMesh convexMesh) static ConvexMeshSupportcreateAt(long address, PxConvexMesh convexMesh, PxVec3 scale) static ConvexMeshSupportcreateAt(long address, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation) static ConvexMeshSupportcreateAt(long address, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation, float margin) static <T> ConvexMeshSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh) static <T> ConvexMeshSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh, PxVec3 scale) static <T> ConvexMeshSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation) static <T> ConvexMeshSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation, float margin) voiddestroy()floatReturn the user defined shape margin.getScale()voidsetMargin(float value) voidvoidsetScaleRotation(PxQuat value) static ConvexMeshSupportwrapPointer(long address) Methods inherited from class physx.extensions.Support
supportLocalMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
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
Constructs a BoxSupport for a PxConvexMesh -
ConvexMeshSupport
Constructs a BoxSupport for a PxConvexMesh -
ConvexMeshSupport
Constructs a BoxSupport for a PxConvexMesh -
ConvexMeshSupport
Constructs a BoxSupport for a PxConvexMesh
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- 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
- 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() -
getConvexMesh
-
getScale
-
setScale
-
getScaleRotation
-
setScaleRotation
-
getMargin
public float getMargin()Description copied from class:SupportReturn the user defined shape margin. Margin should be greater than or equal to 0 -
setMargin
public void setMargin(float value)
-