From 851159828a0e12a688254808917ef6b813e0fa9e Mon Sep 17 00:00:00 2001 From: Jasper Date: Fri, 13 Feb 2015 16:34:39 +0100 Subject: [PATCH] Camera now with less jitter! --- physics.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/physics.cc b/physics.cc index 7050a08..60a28b6 100644 --- a/physics.cc +++ b/physics.cc @@ -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 + info.m_friction = 0; + info.m_restitution = 0; + world->addRigidBody(cameraBody,COL_OBJECTS, objectsPhysicsCollision); cameraBody->setGravity(btVector3(0,0,0));