pad moving with physics velocity

This commit is contained in:
viktorljung
2015-09-15 14:27:35 +01:00
parent 2d7b32b7a3
commit 8963e94cd6
4 changed files with 27 additions and 39 deletions
+5 -2
View File
@@ -95,9 +95,12 @@ private:
void EndContact(b2Contact* contact)
{ /* handle end event */ }
void PreSolve(b2Contact* contact, const b2Manifold* oldManifold)
{ /* handle pre-solve event */ }
{ /* handle pre-solve event */}
void PostSolve(b2Contact* contact, const b2ContactImpulse* impulse)
{ /* handle post-solve event */ }
{ /* handle post-solve event */
contact->GetFixtureA()->GetBody()->SetAngularVelocity(0.f);
contact->GetFixtureB()->GetBody()->SetAngularVelocity(0.f);
}
private:
PhysicsSystem* m_PhysicsSystem;