Hi, I have been having an issue where projectiles are not rotating correctly with my player & weapon, and are trailing behind when the players velocity is increased.
Only related question I could find online (unanswered): https://godotforums.org/d/30716-projectiles-spawn-away-from-muzzle
GitHub for the project: https://github.com/KermitGodFrog/Lunar-Front
The player rotates with rotate_object_local(), which might relate to the strange rotation of the projectile when spawned.
The weapon rotates with look_at().
So far I've tried:
- Orthonormalizing the player, weapon and projectile instance.
- Messing around with whether the projectile instance uses local or global transforms of the weapons spawn marker.
Any ideas on how to fix this are greatly appreciated.