mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:38:34 +02:00
clean up
This commit is contained in:
parent
a75f655e40
commit
e923f5446d
2 changed files with 21 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue