24 #ifndef __OCTAPLAYGROUND_H
25 #define __OCTAPLAYGROUND_H
71 osg::Matrix::translate( cos(M_PI - i*angle) * r,
72 sin(M_PI - i*angle) * r,
double height
Definition: octaplayground.h:35
Data structure for accessing the ODE.
Definition: odehandle.h:44
double width
Definition: octaplayground.h:35
OsgHandle osgHandle
Definition: abstractobstacle.h:174
virtual std::vector< TextureDescr > getTextures(int primitive) const
returns the textures of the given primitive
Definition: abstractobstacle.cpp:147
Matrixd Matrix
Definition: osgforwarddecl.h:47
double radius
Definition: octaplayground.h:35
bool obstacle_exists
Definition: abstractobstacle.h:171
OdeHandle odeHandle
Definition: abstractobstacle.h:173
OctaPlayground(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const Pos &geometry=Pos(7, 0.2, 0.5), int numberCorners=8, bool createGround=true)
Definition: octaplayground.h:44
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual void createGround()
Definition: abstractground.cpp:123
Definition: primitive.h:89
Definition: primitive.h:89
double box_length
Definition: octaplayground.h:39
std::vector< Primitive * > obst
primitives which belong to this obstacle
Definition: abstractobstacle.h:166
Box primitive.
Definition: primitive.h:267
virtual void setTextures(const std::vector< TextureDescr > &textures)
assign a set of texture to the surfaces of the primitive
Definition: primitive.cpp:142
virtual void calcBoxLength()
Definition: octaplayground.h:81
osg::Matrix pose
Definition: abstractobstacle.h:170
int number_elements
Definition: octaplayground.h:37
double angle
Definition: octaplayground.h:38
virtual void setPose(const Pose &pose)
set the pose of the primitive
Definition: primitive.cpp:156
Definition: octaplayground.h:31
Definition: abstractground.h:36
virtual void create()
overload this function to create the obstactle. All primitives should go into the list "obst" ...
Definition: octaplayground.h:60
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