java.lang.Object
physx.NativeObject
physx.extensions.Support
physx.extensions.BoxSupport
-
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
ConstructorsModifierConstructorDescriptionprotectedprotectedBoxSupport(long address) BoxSupport(PxVec3 halfExtents) BoxSupport(PxVec3 halfExtents, float margin) -
Method Summary
Modifier and TypeMethodDescriptionstatic BoxSupportarrayGet(long baseAddress, int index) static BoxSupportstatic BoxSupportstatic <T> BoxSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 halfExtents) static <T> BoxSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 halfExtents, float margin) voiddestroy()floatvoidsetHalfExtents(PxVec3 value) voidsetMargin(float value) static BoxSupportwrapPointer(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
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.halfExtents- WebIDL type:PxVec3[Const, Ref]- Returns:
- Stack allocated object of BoxSupport
-
createAt
public static <T> BoxSupport createAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 halfExtents) - 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.halfExtents- WebIDL type:PxVec3[Const, Ref]- Returns:
- Stack allocated object of BoxSupport
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.halfExtents- WebIDL type:PxVec3[Const, Ref]margin- WebIDL type: float- Returns:
- Stack allocated object of BoxSupport
-
createAt
public static <T> BoxSupport createAt(T allocator, NativeObject.Allocator<T> allocate, PxVec3 halfExtents, 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.halfExtents- WebIDL type:PxVec3[Const, Ref]margin- WebIDL type: float- Returns:
- Stack allocated object of BoxSupport
-
destroy
public void destroy() -
getHalfExtents
- Returns:
- WebIDL type:
PxVec3[Value]
-
setHalfExtents
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getMargin
public float getMargin() -
setMargin
public void setMargin(float value) - Parameters:
value- WebIDL type: float
-