Context class for obstacles.
More...
#include <PxControllerObstacles.h>
Context class for obstacles.
An obstacle context class contains and manages a set of user-defined obstacles.
- See Also
- PxBoxObstacle PxCapsuleObstacle PxObstacle
PxObstacleContext::PxObstacleContext |
( |
| ) |
|
|
inline |
virtual PxObstacleContext::~PxObstacleContext |
( |
| ) |
|
|
inlinevirtual |
Adds an obstacle to the context.
- Parameters
-
[in] | obstacle | Obstacle data for the new obstacle. The data gets copied. |
- Returns
- Handle for newly-added obstacle
Retrieves the controller manager associated with this context.
- Returns
- The associated controller manager
virtual PxU32 PxObstacleContext::getNbObstacles |
( |
| ) |
const |
|
pure virtual |
Retrieves number of obstacles in the context.
- Returns
- Number of obstacles in the context
Retrieves desired obstacle.
- Parameters
-
- Returns
- Desired obstacle
Retrieves desired obstacle by given handle.
- Parameters
-
[in] | handle | Obstacle handle |
- Returns
- Desired obstacle
virtual void PxObstacleContext::release |
( |
| ) |
|
|
pure virtual |
virtual bool PxObstacleContext::removeObstacle |
( |
ObstacleHandle |
handle | ) |
|
|
pure virtual |
Removes an obstacle from the context.
- Parameters
-
[in] | handle | Handle for the obstacle object that needs to be removed. |
- Returns
- True if success
Updates data for an existing obstacle.
- Parameters
-
[in] | handle | Handle for the obstacle object that needs to be updated. |
[in] | obstacle | New obstacle data |
- Returns
- True if success
The documentation for this class was generated from the following file: