java.lang.Object
physx.NativeObject
physx.geometry.PxGeometry
physx.geometry.PxSphereGeometry
-
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
ConstructorsModifierConstructorDescriptionprotectedPxSphereGeometry(float ir) protectedPxSphereGeometry(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxSphereGeometryarrayGet(long baseAddress, int index) static PxSphereGeometrycreateAt(long address, float ir) static <T> PxSphereGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate, float ir) voiddestroy()floatvoidsetRadius(float value) static PxSphereGeometrywrapPointer(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
-
PxSphereGeometry
protected PxSphereGeometry() -
PxSphereGeometry
protected PxSphereGeometry(long address) -
PxSphereGeometry
public PxSphereGeometry(float ir) - Parameters:
ir- WebIDL type: float
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.ir- WebIDL type: float- Returns:
- Stack allocated object of PxSphereGeometry
-
createAt
public static <T> PxSphereGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, float ir) - 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.ir- WebIDL type: float- Returns:
- Stack allocated object of PxSphereGeometry
-
destroy
public void destroy()- Overrides:
destroyin classPxGeometry
-
getRadius
public float getRadius()- Returns:
- WebIDL type: float
-
setRadius
public void setRadius(float value) - Parameters:
value- WebIDL type: float
-