24 #ifndef __CLOSEDPLAYGROUND_H
25 #define __CLOSEDPLAYGROUND_H
Data structure for accessing the ODE.
Definition: odehandle.h:44
OsgHandle osgHandle
Definition: abstractobstacle.h:174
Definition: closedplayground.h:32
virtual void setPosition(const Pos &pos)
set the position of the primitive (orientation is preserved)
Definition: primitive.cpp:147
virtual void destroy()
is called to destroy the object. The default implementation is to delete all primitives in "obst"...
Definition: closedplayground.h:56
double height
Definition: playground.h:37
OdeHandle odeHandle
Definition: abstractobstacle.h:173
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
Definition: primitive.h:89
virtual void create()
overload this function to create the obstactle. All primitives should go into the list "obst" ...
Definition: playground.h:66
ClosedPlayground(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const osg::Vec3 &dimension=osg::Vec3(7.0, 0.2, 0.5), double factorxy=1)
Definition: closedplayground.h:39
Vec3f Vec3
Definition: osgforwarddecl.h:42
Definition: primitive.h:89
virtual void create()
overload this function to create the obstactle. All primitives should go into the list "obst" ...
Definition: closedplayground.h:46
double length
Definition: playground.h:37
double width
Definition: playground.h:37
Definition: playground.h:33
std::vector< Primitive * > obst
primitives which belong to this obstacle
Definition: abstractobstacle.h:166
Box primitive.
Definition: primitive.h:267
double factorlength2
Definition: playground.h:38
virtual osg::Vec3 getPos()
gives actual position of the obstacle
Definition: abstractobstacle.cpp:80
virtual void destroy()
is called to destroy the object. The default implementation is to delete all primitives in "obst"...
Definition: abstractobstacle.cpp:171
Box * roof
Definition: closedplayground.h:35
virtual void init(const OdeHandle &odeHandle, double mass, const OsgHandle &osgHandle, char mode=Body|Geom|Draw)
registers primitive in ODE and OSG.
Definition: primitive.cpp:417