Forward/backwards fixed

This commit is contained in:
2026-04-21 03:27:53 +03:00
parent 1488d7d918
commit 1411990def

View File

@@ -306,7 +306,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::NEGATIVE_UNIT_Z;
Ogre::Vector3 forward = yawRot * Ogre::Vector3::UNIT_Z;
Ogre::Vector3 right = yawRot * Ogre::Vector3::UNIT_X;
// Flatten to horizontal plane