Physics force endgame distance and correct starting direction

This commit is contained in:
Jasper 2015-03-09 18:57:40 +01:00
parent 62e897277f
commit 4764d0e706
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ void Physics::takeUpdateStep(float timeDiff)
currentDirection = playerBall->getCenterOfMassPosition();
currentDirection.setY(0);
currentDirection.normalize();
cameraDistance = 15;
}
btVector3 position = currentDirection;

View File

@ -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;