I’m working on a multiplayer game where the client moves a physics-enabled mesh (
PropCha
). The problem is that the movement direction doesn’t align with the controller or camera rotation. Instead, it seems fixed to the world’s cardinal directions (e.g., pressing W always moves south regardless of camera rotation).
Current Setup:
- PlayerController:
- Calculates forces using
Get Control Rotation → Get Forward/Right Vector
. - Applies
Add Force
to the mesh.
- PropCha:
- Does not update its rotation to match the controller or camera.
The Problem:
- Movement direction doesn’t depend on the controller rotation or camera direction.
- Pressing W/S/A/D results in movement based on world space directions.
What I Tried:
- Updating the mesh’s rotation using
Set World Rotation
based on the controller’sYaw
. - Calculating movement forces based on the controller’s
Get Forward Vector
andGet Right Vector
.
Request:
How can I ensure that movement direction is properly aligned with the controller/camera rotation in a multiplayer physics setup?