update ui, tests

This commit is contained in:
Irlan
2018-04-10 22:19:03 -03:00
parent 3e75b1f650
commit 959ce6d92a
9 changed files with 146 additions and 107 deletions

View File

@ -43,13 +43,7 @@ public:
b3Body* body = m_world.CreateBody(bd);
static b3BoxHull boxHull;
{
b3Transform xf;
xf.position.SetZero();
xf.rotation = b3Diagonal(2.0f, 4.0f, 0.5f);
boxHull.SetTransform(xf);
}
static b3BoxHull boxHull(2.0f, 4.0f, 0.5f);
b3HullShape hs;
hs.m_hull = &boxHull;
@ -64,7 +58,7 @@ public:
b3BodyDef bd;
bd.type = b3BodyType::e_dynamicBody;
bd.position.Set(0.0f, 4.0f, 10.0f);
bd.linearVelocity.Set(0.0f, 0.0f, -5.0f);
bd.linearVelocity.Set(0.0f, 0.0f, -20.0f);
m_character = m_world.CreateBody(bd);