java.lang.Object
physx.NativeObject
physx.geometry.PxGeometryHolder
Geometry holder class
This class contains enough space to hold a value of any PxGeometry subtype.
Its principal use is as a convenience class to allow geometries to be returned polymorphically from functions.
-
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
ConstructorsModifierConstructorDescriptionprotectedPxGeometryHolder(long address) PxGeometryHolder(PxGeometry geometry) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxGeometryHolderarrayGet(long baseAddress, int index) box()capsule()voiddestroy()getType()plane()sphere()voidstoreAny(PxGeometry geometry) static PxGeometryHolderwrapPointer(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
-
PxGeometryHolder
protected PxGeometryHolder(long address) -
PxGeometryHolder
public PxGeometryHolder() -
PxGeometryHolder
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getType
- Returns:
- WebIDL type:
PxGeometryTypeEnum[enum]
-
sphere
- Returns:
- WebIDL type:
PxSphereGeometry[Ref]
-
plane
- Returns:
- WebIDL type:
PxPlaneGeometry[Ref]
-
capsule
- Returns:
- WebIDL type:
PxCapsuleGeometry[Ref]
-
box
- Returns:
- WebIDL type:
PxBoxGeometry[Ref]
-
convexMesh
- Returns:
- WebIDL type:
PxConvexMeshGeometry[Ref]
-
triangleMesh
- Returns:
- WebIDL type:
PxTriangleMeshGeometry[Ref]
-
heightField
- Returns:
- WebIDL type:
PxHeightFieldGeometry[Ref]
-
storeAny
- Parameters:
geometry- WebIDL type:PxGeometry[Const, Ref]
-