mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 10:11:54 +02:00
make thrust be in direction of head/view
This commit is contained in:
parent
6609a850eb
commit
d2dd41ba0f
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ void Avatar::updateThrust(float deltaTime, Transmitter * transmitter) {
|
|||
//
|
||||
// Gather thrust information from keyboard and sensors to apply to avatar motion
|
||||
//
|
||||
glm::quat orientation = getOrientation();
|
||||
glm::quat orientation = getHead().getOrientation();
|
||||
glm::vec3 front = orientation * IDENTITY_FRONT;
|
||||
glm::vec3 right = orientation * IDENTITY_RIGHT;
|
||||
glm::vec3 up = orientation * IDENTITY_UP;
|
||||
|
|
Loading…
Reference in a new issue