Added name fields to Collision Object and Shape.

Added name field to Typed Constraint.
Added accessor for gravity in dynamics world.
This commit is contained in:
johnmccutchan
2008-01-30 01:52:07 +00:00
parent 5c40e615bd
commit 8fff5c54e9
10 changed files with 52 additions and 2 deletions

View File

@@ -27,10 +27,11 @@ class btCollisionShape
{
void* m_userPointer;
char* m_shapeName;
public:
btCollisionShape() : m_userPointer(0)
btCollisionShape() : m_userPointer(0), m_shapeName (0)
{
}
virtual ~btCollisionShape()
@@ -103,7 +104,16 @@ public:
return m_userPointer;
}
char* getShapeName () const
{
return m_shapeName;
}
/// the user is responsible for the memory management of name
void setShapeName (char* name)
{
m_shapeName = name;
}
};
#endif //COLLISION_SHAPE_H