Camera works now
This commit is contained in:
@@ -307,7 +307,7 @@ void PlayerControllerSystem::updateLocomotion(PlayerControllerComponent &pc,
|
||||
// Get camera yaw for relative movement
|
||||
Ogre::Quaternion yawRot(Ogre::Degree(state.yaw), Ogre::Vector3::UNIT_Y);
|
||||
Ogre::Vector3 forward = yawRot * Ogre::Vector3::UNIT_Z;
|
||||
Ogre::Vector3 right = yawRot * Ogre::Vector3::UNIT_X;
|
||||
Ogre::Vector3 right = yawRot * -Ogre::Vector3::UNIT_X;
|
||||
|
||||
// Flatten to horizontal plane
|
||||
forward.y = 0;
|
||||
|
||||
Reference in New Issue
Block a user