added Engine::Object::setGravityMode()
git-svn-id: svn://anubis/misc/OdeWorld@227 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
1 parent
dd12e508d9
commit
2b058ed5a5
1 file changed
+7
@@ -48,6 +48,13 @@ class OdeWorld
|
||||
void setMass(dReal newmass);
|
||||
void enableBody();
|
||||
dBodyID getBody() { return m_body; }
|
||||
void setGravityMode(bool enabled)
|
||||
{
|
||||
if (m_body != 0)
|
||||
{
|
||||
dBodySetGravityMode(m_body, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
bool m_is_static;
|
||||
|
||||
Reference in new issue
Block a user