added Engine::Object::setGravityMode()

git-svn-id: svn://anubis/misc/OdeWorld@227 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2010-01-31 04:49:50 +00:00
parent dd12e508d9
commit 2b058ed5a5

View File

@ -48,6 +48,13 @@ class OdeWorld
void setMass(dReal newmass); void setMass(dReal newmass);
void enableBody(); void enableBody();
dBodyID getBody() { return m_body; } dBodyID getBody() { return m_body; }
void setGravityMode(bool enabled)
{
if (m_body != 0)
{
dBodySetGravityMode(m_body, enabled);
}
}
protected: protected:
bool m_is_static; bool m_is_static;