Camera now with less jitter!

This commit is contained in:
Jasper 2015-02-13 16:34:39 +01:00
parent 6ffc1809ff
commit 851159828a

View File

@ -354,6 +354,9 @@ void Physics::addCamera() //Camera Creator automatically called when player is c
cameraBody->setDamping(0.9,0.5); //this damping factor leaves a relativly smoothe system cameraBody->setDamping(0.9,0.5); //this damping factor leaves a relativly smoothe system
info.m_friction = 0;
info.m_restitution = 0;
world->addRigidBody(cameraBody,COL_OBJECTS, objectsPhysicsCollision); world->addRigidBody(cameraBody,COL_OBJECTS, objectsPhysicsCollision);
cameraBody->setGravity(btVector3(0,0,0)); cameraBody->setGravity(btVector3(0,0,0));