Merge pull request #4467 from huffman/avatar-thrust

Fix thrust not being applied w/ Physics + Avatar
This commit is contained in:
Andrew Meadows 2015-03-19 16:40:10 -07:00
commit a7dbd6779f

View file

@ -1357,6 +1357,9 @@ void MyAvatar::updatePositionWithPhysics(float deltaTime) {
// rotate back into world-frame
_velocity = rotation * newLocalVelocity;
_velocity += _thrust * deltaTime;
_thrust = glm::vec3(0.0f);
}
void MyAvatar::updateCollisionSound(const glm::vec3 &penetration, float deltaTime, float frequency) {