Camera works now

This commit is contained in:
2026-04-21 03:59:45 +03:00
parent 1411990def
commit c6fb3bb463

View File

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