mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 15:17:42 +02:00
Merge pull request #4467 from huffman/avatar-thrust
Fix thrust not being applied w/ Physics + Avatar
This commit is contained in:
commit
a7dbd6779f
1 changed files with 3 additions and 0 deletions
|
@ -1357,6 +1357,9 @@ void MyAvatar::updatePositionWithPhysics(float deltaTime) {
|
||||||
|
|
||||||
// rotate back into world-frame
|
// rotate back into world-frame
|
||||||
_velocity = rotation * newLocalVelocity;
|
_velocity = rotation * newLocalVelocity;
|
||||||
|
|
||||||
|
_velocity += _thrust * deltaTime;
|
||||||
|
_thrust = glm::vec3(0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::updateCollisionSound(const glm::vec3 &penetration, float deltaTime, float frequency) {
|
void MyAvatar::updateCollisionSound(const glm::vec3 &penetration, float deltaTime, float frequency) {
|
||||||
|
|
Loading…
Reference in a new issue