This commit is contained in:
Jeffrey Ventrella 2013-05-09 11:22:24 -07:00
parent a75f655e40
commit e923f5446d
2 changed files with 21 additions and 18 deletions

View file

@ -404,6 +404,9 @@ void Avatar::simulate(float deltaTime) {
_bodyPitch *= tiltDecay;
_bodyRoll *= tiltDecay;
//wtf? - why won't this compile?
//angleBetween(&_orientation.getUp(), &_gravity);
// update position by velocity
_position += _velocity * deltaTime;

View file

@ -38,7 +38,7 @@ void Camera::update(float deltaTime) {
if (_mode == CAMERA_MODE_NULL) {
_modeShift = 0.0;
} else {
// use iterative forces to keep the camera at the desired position and angle
// use iterative forces to push the camera towards the desired position and angle
updateFollowMode(deltaTime);
if (_modeShift < 1.0f) {