#include <PxControllerObstacles.h>
Public Member Functions | |
PxObstacleContext () | |
virtual | ~PxObstacleContext () |
virtual void | release ()=0 |
Releases the context. | |
virtual PxControllerManager & | getControllerManager () const =0 |
Retrieves the controller manager associated with this context. | |
virtual ObstacleHandle | addObstacle (const PxObstacle &obstacle)=0 |
Adds an obstacle to the context. | |
virtual bool | removeObstacle (ObstacleHandle handle)=0 |
Removes an obstacle from the context. | |
virtual bool | updateObstacle (ObstacleHandle handle, const PxObstacle &obstacle)=0 |
Updates data for an existing obstacle. | |
virtual PxU32 | getNbObstacles () const =0 |
Retrieves number of obstacles in the context. | |
virtual const PxObstacle * | getObstacle (PxU32 i) const =0 |
Retrieves desired obstacle. | |
virtual const PxObstacle * | getObstacleByHandle (ObstacleHandle handle) const =0 |
Retrieves desired obstacle by given handle. |
An obstacle context class contains and manages a set of user-defined obstacles.
PxObstacleContext::PxObstacleContext | ( | ) | [inline] |
virtual PxObstacleContext::~PxObstacleContext | ( | ) | [inline, virtual] |
virtual ObstacleHandle PxObstacleContext::addObstacle | ( | const PxObstacle & | obstacle | ) | [pure virtual] |
Adds an obstacle to the context.
[in] | obstacle | Obstacle data for the new obstacle. The data gets copied. |
virtual PxControllerManager& PxObstacleContext::getControllerManager | ( | ) | const [pure virtual] |
Retrieves the controller manager associated with this context.
virtual PxU32 PxObstacleContext::getNbObstacles | ( | ) | const [pure virtual] |
Retrieves number of obstacles in the context.
virtual const PxObstacle* PxObstacleContext::getObstacle | ( | PxU32 | i | ) | const [pure virtual] |
Retrieves desired obstacle.
[in] | i | Obstacle index |
virtual const PxObstacle* PxObstacleContext::getObstacleByHandle | ( | ObstacleHandle | handle | ) | const [pure virtual] |
Retrieves desired obstacle by given handle.
[in] | handle | Obstacle handle |
virtual void PxObstacleContext::release | ( | ) | [pure virtual] |
Releases the context.
virtual bool PxObstacleContext::removeObstacle | ( | ObstacleHandle | handle | ) | [pure virtual] |
Removes an obstacle from the context.
[in] | handle | Handle for the obstacle object that needs to be removed. |
virtual bool PxObstacleContext::updateObstacle | ( | ObstacleHandle | handle, | |
const PxObstacle & | obstacle | |||
) | [pure virtual] |
Updates data for an existing obstacle.
[in] | handle | Handle for the obstacle object that needs to be updated. |
[in] | obstacle | New obstacle data |