18 lines
319 B
C++
18 lines
319 B
C++
|
|
#include "OdeWorld.h"
|
|
|
|
OdeWorld::OdeWorld()
|
|
{
|
|
m_world = dWorldCreate();
|
|
m_space = dHashSpaceCreate(0);
|
|
m_contactJointGroup = dJointGroupCreate(0);
|
|
setGravity(0, -9.81, 0);
|
|
}
|
|
|
|
OdeWorld::~OdeWorld()
|
|
{
|
|
dJointGroupDestroy(m_contactJointGroup);
|
|
dSpaceDestroy(m_space);
|
|
dWorldDestroy(m_world);
|
|
}
|