mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Fix thrust not being applied w/ Physics + Avatar
This commit is contained in:
parent
fde7d5d464
commit
870f1112e4
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue