java.lang.Object
physx.NativeObject
physx.character.PxControllerDesc
physx.character.PxCapsuleControllerDesc
A descriptor for a capsule character controller.
- See Also:
-
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
ConstructorsModifierConstructorDescriptionconstructor sets to default.protectedPxCapsuleControllerDesc(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxCapsuleControllerDescarrayGet(long baseAddress, int index) static PxCapsuleControllerDesccreateAt(long address) static <T> PxCapsuleControllerDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()The climbing modefloatThe height of the controllerfloatThe radius of the capsulevoidThe climbing modevoidsetHeight(float value) The height of the controllervoidsetRadius(float value) The radius of the capsulevoid(re)sets the structure to the default.static PxCapsuleControllerDescwrapPointer(long address) Methods inherited from class physx.character.PxControllerDesc
getBehaviorCallback, getContactOffset, getDensity, getInvisibleWallHeight, getMaterial, getMaxJumpHeight, getNonWalkableMode, getPosition, getRegisterDeletionListener, getReportCallback, getScaleCoeff, getSlopeLimit, getStepOffset, getType, getUpDirection, getUserData, getVolumeGrowth, isValid, setBehaviorCallback, setContactOffset, setDensity, setInvisibleWallHeight, setMaterial, setMaxJumpHeight, setNonWalkableMode, setPosition, setRegisterDeletionListener, setReportCallback, setScaleCoeff, setSlopeLimit, setStepOffset, setUpDirection, setUserData, setVolumeGrowthMethods 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
-
PxCapsuleControllerDesc
protected PxCapsuleControllerDesc(long address) -
PxCapsuleControllerDesc
public PxCapsuleControllerDesc()constructor sets to default.
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxCapsuleControllerDesc
-
createAt
- 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.- Returns:
- Stack allocated object of PxCapsuleControllerDesc
-
destroy
public void destroy() -
getRadius
public float getRadius()The radius of the capsuleDefault: 0.0
- See Also:
-
setRadius
public void setRadius(float value) The radius of the capsuleDefault: 0.0
- See Also:
-
getHeight
public float getHeight()The height of the controllerDefault: 0.0
- See Also:
-
setHeight
public void setHeight(float value) The height of the controllerDefault: 0.0
- See Also:
-
getClimbingMode
The climbing modeDefault: PxCapsuleClimbingMode::eEASY
- See Also:
-
setClimbingMode
The climbing modeDefault: PxCapsuleClimbingMode::eEASY
- See Also:
-
setToDefault
public void setToDefault()(re)sets the structure to the default.
-