Hi everyone,
I’m trying to create an aiming system similar to Towerfall, Shadow Complex, and any number of other side-scrolling games where you can aim with the right stick. I am just having a hell of a time figuring out how to properly script it so, say, an arrow component can rotate properly with the right analog stick only on the same plane as my character, giving me a place to spawn projectiles from. So, in a sense, i dont want the arrow to be able to rotate around my character’s waist, I want it to only rotate as if it was going to bisect them. Any help would be appreciated.I know it involves some vector math I’m just not quite getting right, but haven’t seen any posts here that appear to answer this very clearly for a side-scroller.