I'm working on platformer movement mechanics. I'd like to be able to use angled platforms. Is there a way I can get the rotation of the platform my player is currently colliding with?
You could make a rule on each collider object that sets a global variable that stores its rotation when it collides with the player, and then your player could use that variable if he collides with any collider, to say, walk parallel to it, or whatever.
Ooh! That might work. I hadn't thought of that. I will have to give it a try.
EDIT: I decided not to go that route. I figured I'd get better collision by mounting the player to an invisible actor with circular shape. Works just fine so far.
Comments
EDIT:
I decided not to go that route. I figured I'd get better collision by mounting the player to an invisible actor with circular shape. Works just fine so far.