1) Improved handling of 'moving' or 'physical' objects (e.g. road cone).
You can now shoot them, and they will be pushed aside by a close-by explosions. 2) Bugfix: Physical objects are now reset to the correct starting location. 3) Physical objects have now angular friction defined, preventing them from rotating endlessly. 4) Karts have now some 'restitution', which adds a bit of bouncing to collisions. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1445 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -59,7 +59,7 @@ void TriangleMesh::createBody(btCollisionObject::CollisionFlags flags)
|
||||
m_body=new btRigidBody(info);
|
||||
|
||||
world->getPhysics()->addBody(m_body);
|
||||
m_user_pointer.set(UserPointer::UP_TRACK, this);
|
||||
m_user_pointer.set(this);
|
||||
m_body->setUserPointer(&m_user_pointer);
|
||||
m_body->setCollisionFlags(m_body->getCollisionFlags() |
|
||||
flags |
|
||||
|
||||
Reference in New Issue
Block a user