java.lang.Object
physx.NativeObject
physx.character.PxController
physx.character.PxBoxController
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxBoxControllerarrayGet(long baseAddress, int index) floatGets controller's half forward extent.floatGets controller's half height.floatGets controller's half side extent.booleansetHalfForwardExtent(float halfForwardExtent) Sets controller's half forward extent.booleansetHalfHeight(float halfHeight) Sets controller's half height.booleansetHalfSideExtent(float halfSideExtent) Sets controller's half side extent.static PxBoxControllerwrapPointer(long address) Methods inherited from class physx.character.PxController
getActor, getContactOffset, getFootPosition, getNonWalkableMode, getPosition, getScene, getSlopeLimit, getState, getStats, getStepOffset, getType, getUpDirection, getUserData, invalidateCache, move, move, release, resize, setContactOffset, setFootPosition, setNonWalkableMode, setPosition, setSlopeLimit, setStepOffset, setUpDirection, setUserDataMethods 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
-
PxBoxController
protected PxBoxController() -
PxBoxController
protected PxBoxController(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getHalfHeight
public float getHalfHeight()Gets controller's half height.- Returns:
- The half height of the controller.
- See Also:
-
getHalfSideExtent
public float getHalfSideExtent()Gets controller's half side extent.- Returns:
- The half side extent of the controller.
- See Also:
-
getHalfForwardExtent
public float getHalfForwardExtent()Gets controller's half forward extent.- Returns:
- The half forward extent of the controller.
- See Also:
-
setHalfHeight
public boolean setHalfHeight(float halfHeight) Sets controller's half height.\warning this doesn't check for collisions.
- Parameters:
halfHeight- The new half height for the controller.- Returns:
- Currently always true.
- See Also:
-
setHalfSideExtent
public boolean setHalfSideExtent(float halfSideExtent) Sets controller's half side extent.\warning this doesn't check for collisions.
- Parameters:
halfSideExtent- The new half side extent for the controller.- Returns:
- Currently always true.
- See Also:
-
setHalfForwardExtent
public boolean setHalfForwardExtent(float halfForwardExtent) Sets controller's half forward extent.\warning this doesn't check for collisions.
- Parameters:
halfForwardExtent- The new half forward extent for the controller.- Returns:
- Currently always true.
- See Also:
-