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::PxObstacleContext  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ ~PxObstacleContext()
  
  
      
        
          | virtual PxObstacleContext::~PxObstacleContext  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ addObstacle()
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 
 
 
 
◆ getControllerManager()
Retrieves the controller manager associated with this context. 
- Returns
 - The associated controller manager 
 
 
 
◆ getNbObstacles()
  
  
      
        
          | virtual PxU32 PxObstacleContext::getNbObstacles  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Retrieves number of obstacles in the context. 
- Returns
 - Number of obstacles in the context 
 
 
 
◆ getObstacle()
Retrieves desired obstacle. 
- Parameters
 - 
  
  
 
- Returns
 - Desired obstacle 
 
 
 
◆ getObstacleByHandle()
Retrieves desired obstacle by given handle. 
- Parameters
 - 
  
    | [in] | handle | Obstacle handle | 
  
   
- Returns
 - Desired obstacle 
 
 
 
◆ release()
  
  
      
        
          | virtual void PxObstacleContext::release  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ removeObstacle()
  
  
      
        
          | 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 
 
 
 
◆ updateObstacle()
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: