make thrust be in direction of head/view

This commit is contained in:
Philip Rosedale 2013-07-11 21:46:13 -07:00
parent 6609a850eb
commit d2dd41ba0f

View file

@ -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;