public class PxCapsuleGeometry extends PxGeometry
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
protected |
PxCapsuleGeometry() |
|
PxCapsuleGeometry(float radius,
float halfHeight) |
protected |
PxCapsuleGeometry(long address) |
| Modifier and Type | Method and Description |
|---|---|
static PxCapsuleGeometry |
createAt(long address,
float radius,
float halfHeight) |
static <T> PxCapsuleGeometry |
createAt(T allocator,
NativeObject.Allocator<T> allocate,
float radius,
float halfHeight) |
void |
destroy() |
static PxCapsuleGeometry |
wrapPointer(long address) |
getTypecheckNotNull, equals, getAddress, hashCodepublic static final int SIZEOF
public static final int ALIGNOF
protected PxCapsuleGeometry()
protected PxCapsuleGeometry(long address)
public PxCapsuleGeometry(float radius,
float halfHeight)
radius - WebIDL type: floathalfHeight - WebIDL type: floatpublic static PxCapsuleGeometry wrapPointer(long address)
public static PxCapsuleGeometry createAt(long address, float radius, float halfHeight)
address - Pre-allocated memory, where the object is created.radius - WebIDL type: floathalfHeight - WebIDL type: floatpublic static <T> PxCapsuleGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, float radius, float halfHeight)
T - Allocator class, e.g. LWJGL's MemoryStack.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: floatpublic void destroy()
destroy in class PxGeometry