Physics force endgame distance and correct starting direction
This commit is contained in:
parent
62e897277f
commit
4764d0e706
@ -43,6 +43,7 @@ void Physics::takeUpdateStep(float timeDiff)
|
|||||||
currentDirection = playerBall->getCenterOfMassPosition();
|
currentDirection = playerBall->getCenterOfMassPosition();
|
||||||
currentDirection.setY(0);
|
currentDirection.setY(0);
|
||||||
currentDirection.normalize();
|
currentDirection.normalize();
|
||||||
|
cameraDistance = 15;
|
||||||
}
|
}
|
||||||
btVector3 position = currentDirection;
|
btVector3 position = currentDirection;
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ class Physics {
|
|||||||
bool simulationActive = true;
|
bool simulationActive = true;
|
||||||
bool sinking = true;
|
bool sinking = true;
|
||||||
bool endgame = false;
|
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* playerBall; //allows for easier access to the ball
|
||||||
btRigidBody* terrainBody; //duh
|
btRigidBody* terrainBody; //duh
|
||||||
btRigidBody* cameraBody;
|
btRigidBody* cameraBody;
|
||||||
|
Loading…
Reference in New Issue
Block a user