java.lang.Object
physx.NativeObject
physx.character.PxControllerDesc
physx.character.PxBoxControllerDesc
Descriptor for a box 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.protectedPxBoxControllerDesc(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxBoxControllerDescarrayGet(long baseAddress, int index) static PxBoxControllerDesccreateAt(long address) static <T> PxBoxControllerDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatHalf forward extentfloatHalf heightfloatHalf side extentvoidsetHalfForwardExtent(float value) Half forward extentvoidsetHalfHeight(float value) Half heightvoidsetHalfSideExtent(float value) Half side extentvoid(re)sets the structure to the default.static PxBoxControllerDescwrapPointer(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
-
PxBoxControllerDesc
protected PxBoxControllerDesc(long address) -
PxBoxControllerDesc
public PxBoxControllerDesc()constructor sets to default.
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxBoxControllerDesc
-
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 PxBoxControllerDesc
-
destroy
public void destroy() -
getHalfHeight
public float getHalfHeight()Half heightDefault: 1.0
-
setHalfHeight
public void setHalfHeight(float value) Half heightDefault: 1.0
-
getHalfSideExtent
public float getHalfSideExtent()Half side extentDefault: 0.5
-
setHalfSideExtent
public void setHalfSideExtent(float value) Half side extentDefault: 0.5
-
getHalfForwardExtent
public float getHalfForwardExtent()Half forward extentDefault: 0.5
-
setHalfForwardExtent
public void setHalfForwardExtent(float value) Half forward extentDefault: 0.5
-
setToDefault
public void setToDefault()(re)sets the structure to the default.
-