Class to aid in obstacle avoidance routine. More...
#include <SphereObstacle.hpp>
Public Member Functions | |
SphereObstacle (steer::Vector2 position, float radius) | |
Construct a sphere obstacle from a position and radius. | |
virtual | ~SphereObstacle () |
Destructor. | |
bool | taggedInGroup () const |
Gets the tag status of the obstacle. | |
void | Tag () |
Tags the obstacle for an action. | |
void | unTag () |
Untags the obstacle. | |
void | setPosition (steer::Vector2 position) |
Sets the position of the obstacle. | |
steer::Vector2 | getPosition () const |
Gets the position of the obstacle. | |
void | setRadius (float radius) |
Sets the bounding radius of the obstacle. | |
float | getRadius () const |
Gets the bounding radius of the obstacle. | |
Public Attributes | |
steer::Vector2 | m_position |
Position for the sphere obstacle. | |
float | m_radius |
Radius for the sphere obstacle. | |
bool | m_tag |
Determines wheter or not the obstacle is tagged for an action. | |
Class to aid in obstacle avoidance routine.
|
inline |
Construct a sphere obstacle from a position and radius.
position | - a steer::Vector2 of floats. |
radius | - a plain old float. |
|
inline |
Sets the position of the obstacle.
position | - a steer::Vector2 of floats. |
|
inline |
Sets the bounding radius of the obstacle.
radius | - a plain old float. |