Fix thrust not being applied w/ Physics + Avatar

This commit is contained in:
Ryan Huffman 2015-03-17 16:17:44 -07:00
parent fde7d5d464
commit 870f1112e4

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) {