added user data pointer to OdeWorld::Object
git-svn-id: svn://anubis/misc/OdeWorld@236 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
ddf453379e
commit
861ef750ed
@ -63,6 +63,11 @@ class OdeWorld
|
|||||||
dBodySetGravityMode(m_body, enabled);
|
dBodySetGravityMode(m_body, enabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
void setUserData(void * user_data)
|
||||||
|
{
|
||||||
|
m_user_data = user_data;
|
||||||
|
}
|
||||||
|
void * getUserData() { return m_user_data; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool m_is_static;
|
bool m_is_static;
|
||||||
@ -75,6 +80,7 @@ class OdeWorld
|
|||||||
dReal m_position[3];
|
dReal m_position[3];
|
||||||
dReal m_rotation[12];
|
dReal m_rotation[12];
|
||||||
OdeWorld * m_ode_world;
|
OdeWorld * m_ode_world;
|
||||||
|
void * m_user_data;
|
||||||
|
|
||||||
void setupGeom(dGeomID geom, dMass * mass,
|
void setupGeom(dGeomID geom, dMass * mass,
|
||||||
float locx, float locy, float locz,
|
float locx, float locy, float locz,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user