java.lang.Object
physx.NativeObject
physx.geometry.PxGeometry
physx.geometry.PxBoxGeometry
-
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
ConstructorsModifierConstructorDescriptionprotectedPxBoxGeometry(float hx, float hy, float hz) protectedPxBoxGeometry(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxBoxGeometryarrayGet(long baseAddress, int index) static PxBoxGeometrycreateAt(long address, float hx, float hy, float hz) static <T> PxBoxGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate, float hx, float hy, float hz) voiddestroy()voidsetHalfExtents(PxVec3 value) static PxBoxGeometrywrapPointer(long address) Methods inherited from class physx.geometry.PxGeometry
getTypeMethods 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
-
PxBoxGeometry
protected PxBoxGeometry() -
PxBoxGeometry
protected PxBoxGeometry(long address) -
PxBoxGeometry
public PxBoxGeometry(float hx, float hy, float hz) - Parameters:
hx- WebIDL type: floathy- WebIDL type: floathz- WebIDL type: float
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.hx- WebIDL type: floathy- WebIDL type: floathz- WebIDL type: float- Returns:
- Stack allocated object of PxBoxGeometry
-
createAt
public static <T> PxBoxGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, float hx, float hy, float hz) - 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.hx- WebIDL type: floathy- WebIDL type: floathz- WebIDL type: float- Returns:
- Stack allocated object of PxBoxGeometry
-
destroy
public void destroy()- Overrides:
destroyin classPxGeometry
-
getHalfExtents
- Returns:
- WebIDL type:
PxVec3[Value]
-
setHalfExtents
- Parameters:
value- WebIDL type:PxVec3[Value]
-