#include <passivesphere.h>
Inherits AbstractObstacle.
Inheritance diagram for PassiveSphere:
Public Member Functions | |
PassiveSphere (const OdeHandle &odeHandle, const OsgHandle &osgHandle, double radius=0.3, double mass=1.0) | |
Constructor. | |
~PassiveSphere () | |
virtual void | update () |
update position of sphere | |
virtual void | setTexture (const std::string &filename) |
virtual void | setPose (const osg::Matrix &pose) |
sets position of the obstacle and creates/recreates obstacle if necessary | |
virtual Primitive * | getMainPrimitive () const |
Protected Member Functions | |
virtual void | create () |
virtual void | destroy () |
Private Attributes | |
double | radius |
double | mass |
int | texture |
Sphere * | sphere |
|
Constructor.
|
|
|
|
Implements AbstractObstacle.
|
|
Implements AbstractObstacle.
|
|
Implements AbstractObstacle.
|
|
sets position of the obstacle and creates/recreates obstacle if necessary
Implements AbstractObstacle.
|
|
|
|
update position of sphere
Implements AbstractObstacle.
|
|
|
|
|
|
|
|
|