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

@@ -33,6 +33,7 @@ class btTypedConstraint
{
int m_userConstraintType;
int m_userConstraintId;
char* m_name;
btTypedConstraintType m_constraintType;
@@ -107,6 +108,16 @@ public:
{
return m_constraintType;
}
char* getName () const
{
return m_name;
}
void setName (char* name)
{
m_name = name;
}
};
#endif //TYPED_CONSTRAINT_H