java.lang.Object
physx.NativeObject
physx.cooking.PxConvexMeshDesc
Descriptor class for #PxConvexMesh.
Note: The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 256.
Note: The number of vertices and the number of convex polygons in a GPU compatible convex mesh is limited to 64,
and the number of faces per vertex is limited to 32.
- See Also:
-
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
ConstructorsModifierConstructorDescriptionconstructor sets to default.protectedPxConvexMeshDesc(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxConvexMeshDescarrayGet(long baseAddress, int index) static PxConvexMeshDesccreateAt(long address) static <T> PxConvexMeshDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()getFlags()Flags bits, combined from values of the enum ::PxConvexFlagVertex positions data in PxBoundedData format.voidsetFlags(PxConvexFlags value) Flags bits, combined from values of the enum ::PxConvexFlagvoidsetPoints(PxBoundedData value) Vertex positions data in PxBoundedData format.static PxConvexMeshDescwrapPointer(long address) Methods 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
-
PxConvexMeshDesc
protected PxConvexMeshDesc(long address) -
PxConvexMeshDesc
public PxConvexMeshDesc()constructor sets to default.
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxConvexMeshDesc
-
createAt
- 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.- Returns:
- Stack allocated object of PxConvexMeshDesc
-
destroy
public void destroy() -
getPoints
Vertex positions data in PxBoundedData format.Default: NULL
-
setPoints
Vertex positions data in PxBoundedData format.Default: NULL
-
getFlags
Flags bits, combined from values of the enum ::PxConvexFlagDefault: 0
-
setFlags
Flags bits, combined from values of the enum ::PxConvexFlagDefault: 0
-