java.lang.Object
physx.NativeObject
physx.extensions.Support
physx.extensions.CapsuleSupport
-
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
ConstructorsModifierConstructorDescriptionprotectedCapsuleSupport(float radius, float halfHeight) protectedCapsuleSupport(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic CapsuleSupportarrayGet(long baseAddress, int index) static CapsuleSupportcreateAt(long address, float radius, float halfHeight) static <T> CapsuleSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, float radius, float halfHeight) voiddestroy()floatfloatvoidsetHalfHeight(float value) voidsetRadius(float value) static CapsuleSupportwrapPointer(long address) Methods inherited from class physx.extensions.Support
getMargin, 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
-
CapsuleSupport
protected CapsuleSupport() -
CapsuleSupport
protected CapsuleSupport(long address) -
CapsuleSupport
public CapsuleSupport(float radius, float halfHeight) - Parameters:
radius- WebIDL type: floathalfHeight- WebIDL type: float
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.radius- WebIDL type: floathalfHeight- WebIDL type: float- Returns:
- Stack allocated object of CapsuleSupport
-
createAt
public static <T> CapsuleSupport createAt(T allocator, NativeObject.Allocator<T> allocate, float radius, float halfHeight) - 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.radius- WebIDL type: floathalfHeight- WebIDL type: float- Returns:
- Stack allocated object of CapsuleSupport
-
destroy
public void destroy() -
getRadius
public float getRadius()- Returns:
- WebIDL type: float
-
setRadius
public void setRadius(float value) - Parameters:
value- WebIDL type: float
-
getHalfHeight
public float getHalfHeight()- Returns:
- WebIDL type: float
-
setHalfHeight
public void setHalfHeight(float value) - Parameters:
value- WebIDL type: float
-