OdeWorld/OdeWorld.h
josh 91517f2931 added collide callback to OdeWorld
git-svn-id: svn://anubis/misc/OdeWorld@144 bd8a9e45-a331-0410-811e-c64571078777
2009-09-27 22:02:43 +00:00

28 lines
516 B
C++

#ifndef ODEWORLD_H
#define ODEWORLD_H
#include <ode/ode.h>
class OdeWorld
{
public:
OdeWorld();
~OdeWorld();
void setGravity(float x, float y, float z)
{
dWorldSetGravity(m_world, x, y, z);
}
void worldStep();
friend void OdeWorld_collide_callback(void * data,
dGeomID o1, dGeomID o2);
protected:
dWorldID m_world;
dSpaceID m_space;
dJointGroupID m_contactJointGroup;
};
#endif