Get rotation of currently colliding actor

Fafnir312Fafnir312 Member Posts: 161
edited November -1 in Working with GS (Mac)
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?

Comments

  • ShanestaShanesta Member Posts: 63
    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.
  • Fafnir312Fafnir312 Member Posts: 161
    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.
Sign In or Register to comment.