java.lang.Object
physx.NativeObject
physx.extensions.Support
physx.extensions.SphereSupport
Pre-made support mapping for a sphere
-
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
ConstructorsModifierConstructorDescriptionprotectedSphereSupport(float radius) Constructs a SphereSupport for a sphere radiusprotectedSphereSupport(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic SphereSupportarrayGet(long baseAddress, int index) static SphereSupportcreateAt(long address, float radius) static <T> SphereSupportcreateAt(T allocator, NativeObject.Allocator<T> allocate, float radius) voiddestroy()floatvoidsetRadius(float value) static SphereSupportwrapPointer(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
-
SphereSupport
protected SphereSupport() -
SphereSupport
protected SphereSupport(long address) -
SphereSupport
public SphereSupport(float radius) Constructs a SphereSupport for a sphere radius
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.radius- WebIDL type: float- Returns:
- Stack allocated object of SphereSupport
-
createAt
public static <T> SphereSupport createAt(T allocator, NativeObject.Allocator<T> allocate, float radius) - 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: float- Returns:
- Stack allocated object of SphereSupport
-
destroy
public void destroy() -
getRadius
public float getRadius() -
setRadius
public void setRadius(float value)
-