java.lang.Object
physx.NativeObject
physx.extensions.Support
physx.extensions.ConvexMeshSupport
-
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) ConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale) ConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation) ConvexMeshSupport(PxConvexMesh convexMesh, PxVec3 scale, PxQuat scaleRotation, float margin) -
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()floatgetScale()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
- Parameters:
convexMesh- WebIDL type:PxConvexMesh[Const, Ref]
-
ConvexMeshSupport
- Parameters:
convexMesh- WebIDL type:PxConvexMesh[Const, Ref]scale- WebIDL type:PxVec3[Const, Ref]
-
ConvexMeshSupport
- Parameters:
convexMesh- WebIDL type:PxConvexMesh[Const, Ref]scale- WebIDL type:PxVec3[Const, Ref]scaleRotation- WebIDL type:PxQuat[Const, Ref]
-
ConvexMeshSupport
- 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
-
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
- Returns:
- WebIDL type:
PxConvexMesh[Platforms=windows;linux;macos]
-
getScale
- Returns:
- WebIDL type:
PxVec3[Value]
-
setScale
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getScaleRotation
- Returns:
- WebIDL type:
PxQuat[Value]
-
setScaleRotation
- Parameters:
value- WebIDL type:PxQuat[Value]
-
getMargin
public float getMargin() -
setMargin
public void setMargin(float value) - Parameters:
value- WebIDL type: float
-