Physics force endgame distance and correct starting direction
This commit is contained in:
parent
6e27f018a7
commit
dbd2b665be
@ -43,6 +43,7 @@ void Physics::takeUpdateStep(float timeDiff)
|
||||
currentDirection = playerBall->getCenterOfMassPosition();
|
||||
currentDirection.setY(0);
|
||||
currentDirection.normalize();
|
||||
cameraDistance = 15;
|
||||
}
|
||||
btVector3 position = currentDirection;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user