From 4764d0e706c27dc3f950a80ac8adfb2ae55ccea4 Mon Sep 17 00:00:00 2001 From: Jasper Date: Mon, 9 Mar 2015 18:57:40 +0100 Subject: [PATCH] Physics force endgame distance and correct starting direction --- physics.cc | 1 + physics.hh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/physics.cc b/physics.cc index ade143b..d4a5014 100644 --- a/physics.cc +++ b/physics.cc @@ -43,6 +43,7 @@ void Physics::takeUpdateStep(float timeDiff) currentDirection = playerBall->getCenterOfMassPosition(); currentDirection.setY(0); currentDirection.normalize(); + cameraDistance = 15; } btVector3 position = currentDirection; diff --git a/physics.hh b/physics.hh index 98fbe53..3490526 100644 --- a/physics.hh +++ b/physics.hh @@ -88,7 +88,7 @@ class Physics { bool simulationActive = true; bool sinking = true; bool endgame = false; - btVector3 currentDirection = btVector3(1,1,1); + btVector3 currentDirection = btVector3(-1,1,1); btRigidBody* playerBall; //allows for easier access to the ball btRigidBody* terrainBody; //duh btRigidBody* cameraBody;