fix mouse joint, draw center of mass, cleanup

This commit is contained in:
Irlan Robson
2017-01-14 01:37:01 -02:00
parent 7d0f06fea2
commit 7586781fad
12 changed files with 56 additions and 69 deletions

View File

@ -29,27 +29,6 @@ struct b3Velocity;
struct b3Position;
struct b3Profile;
struct b3IslandBody
{
b3Body* b;
u32 id;
bool visited;
};
struct b3IslandJoint
{
b3Joint* j;
u32 id;
bool visited;
};
struct b3IslandContact
{
b3Contact* c;
u32 id;
bool visited;
};
class b3Island
{
public :

View File

@ -80,6 +80,7 @@ private:
u32 m_indexB;
float32 m_mB;
b3Mat33 m_iB;
b3Vec3 m_localCenterB;
b3Mat33 m_mass;
b3Vec3 m_rB;
b3Vec3 m_impulse;

View File

@ -103,7 +103,7 @@ public:
hull.m_hull = &m_cylinderHull;
b3ShapeDef sdef;
sdef.density = 0.2f;
sdef.density = 1.0f;
sdef.friction = 0.3f;
sdef.shape = &hull;