Public Member Functions | Protected Member Functions | List of all members
PxBoxController Class Referenceabstract

Box character controller. More...

#include <PxBoxController.h>

Inheritance diagram for PxBoxController:
Inheritance graph
[legend]
Collaboration diagram for PxBoxController:
Collaboration graph
[legend]

Public Member Functions

virtual PxF32 getHalfHeight () const =0
 Gets controller's half height. More...
 
virtual PxF32 getHalfSideExtent () const =0
 Gets controller's half side extent. More...
 
virtual PxF32 getHalfForwardExtent () const =0
 Gets controller's half forward extent. More...
 
virtual bool setHalfHeight (PxF32 halfHeight)=0
 Sets controller's half height. More...
 
virtual bool setHalfSideExtent (PxF32 halfSideExtent)=0
 Sets controller's half side extent. More...
 
virtual bool setHalfForwardExtent (PxF32 halfForwardExtent)=0
 Sets controller's half forward extent. More...
 
- Public Member Functions inherited from PxController
virtual PxControllerShapeType::Enum getType () const =0
 Return the type of controller. More...
 
virtual void release ()=0
 Releases the controller. More...
 
virtual PxControllerCollisionFlags move (const PxVec3 &disp, PxF32 minDist, PxF32 elapsedTime, const PxControllerFilters &filters, const PxObstacleContext *obstacles=NULL)=0
 Moves the character using a "collide-and-slide" algorithm. More...
 
virtual bool setPosition (const PxExtendedVec3 &position)=0
 Sets controller's position. More...
 
virtual const PxExtendedVec3getPosition () const =0
 Retrieve the raw position of the controller. More...
 
virtual bool setFootPosition (const PxExtendedVec3 &position)=0
 Set controller's foot position. More...
 
virtual PxExtendedVec3 getFootPosition () const =0
 Retrieve the "foot" position of the controller, i.e. the position of the bottom of the CCT's shape. More...
 
virtual PxRigidDynamicgetActor () const =0
 Get the rigid body actor associated with this controller (see PhysX documentation). The behavior upon manually altering this actor is undefined, you should primarily use it for reading const properties. More...
 
virtual void setStepOffset (const PxF32 offset)=0
 The step height. More...
 
virtual PxF32 getStepOffset () const =0
 Retrieve the step height. More...
 
virtual void setNonWalkableMode (PxControllerNonWalkableMode::Enum flag)=0
 Sets the non-walkable mode for the CCT. More...
 
virtual
PxControllerNonWalkableMode::Enum 
getNonWalkableMode () const =0
 Retrieves the non-walkable mode for the CCT. More...
 
virtual PxF32 getContactOffset () const =0
 Retrieve the contact offset. More...
 
virtual void setContactOffset (PxF32 offset)=0
 Sets the contact offset. More...
 
virtual PxVec3 getUpDirection () const =0
 Retrieve the 'up' direction. More...
 
virtual void setUpDirection (const PxVec3 &up)=0
 Sets the 'up' direction. More...
 
virtual PxF32 getSlopeLimit () const =0
 Retrieve the slope limit. More...
 
virtual void setSlopeLimit (PxF32 slopeLimit)=0
 Sets the slope limit. More...
 
virtual void invalidateCache ()=0
 Flushes internal geometry cache. More...
 
virtual PxScenegetScene ()=0
 Retrieve the scene associated with the controller. More...
 
virtual void * getUserData () const =0
 Returns the user data associated with this controller. More...
 
virtual void setUserData (void *userData)=0
 Sets the user data associated with this controller. More...
 
virtual void getState (PxControllerState &state) const =0
 Returns information about the controller's internal state. More...
 
virtual void getStats (PxControllerStats &stats) const =0
 Returns the controller's internal statistics. More...
 
virtual void resize (PxReal height)=0
 Resizes the controller. More...
 

Protected Member Functions

PX_INLINE PxBoxController ()
 
virtual ~PxBoxController ()
 
- Protected Member Functions inherited from PxController
PX_INLINE PxController ()
 
virtual ~PxController ()
 

Detailed Description

Box character controller.

See Also
PxBoxControllerDesc PxController

Constructor & Destructor Documentation

PX_INLINE PxBoxController::PxBoxController ( )
inlineprotected
virtual PxBoxController::~PxBoxController ( )
inlineprotectedvirtual

Member Function Documentation

virtual PxF32 PxBoxController::getHalfForwardExtent ( ) const
pure virtual

Gets controller's half forward extent.

Returns
The half forward extent of the controller.
See Also
PxBoxControllerDesc.halfForwardExtent setHalfForwardExtent()
virtual PxF32 PxBoxController::getHalfHeight ( ) const
pure virtual

Gets controller's half height.

Returns
The half height of the controller.
See Also
PxBoxControllerDesc.halfHeight setHalfHeight()
virtual PxF32 PxBoxController::getHalfSideExtent ( ) const
pure virtual

Gets controller's half side extent.

Returns
The half side extent of the controller.
See Also
PxBoxControllerDesc.halfSideExtent setHalfSideExtent()
virtual bool PxBoxController::setHalfForwardExtent ( PxF32  halfForwardExtent)
pure virtual

Sets controller's half forward extent.

Warning
this doesn't check for collisions.
Parameters
[in]halfForwardExtentThe new half forward extent for the controller.
Returns
Currently always true.
See Also
PxBoxControllerDesc.halfForwardExtent getHalfForwardExtent()
virtual bool PxBoxController::setHalfHeight ( PxF32  halfHeight)
pure virtual

Sets controller's half height.

Warning
this doesn't check for collisions.
Parameters
[in]halfHeightThe new half height for the controller.
Returns
Currently always true.
See Also
PxBoxControllerDesc.halfHeight getHalfHeight()
virtual bool PxBoxController::setHalfSideExtent ( PxF32  halfSideExtent)
pure virtual

Sets controller's half side extent.

Warning
this doesn't check for collisions.
Parameters
[in]halfSideExtentThe new half side extent for the controller.
Returns
Currently always true.
See Also
PxBoxControllerDesc.halfSideExtent getHalfSideExtent()

The documentation for this class was generated from the following file:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com