Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Noob_Maker | |
Old Version | Published before Godot 3 was released. |
So, I am planning to make slopes in my game(because mountain regions in story and that when I was messing around I found out a cool sling shot way for cool platforming puzzle ideas) But I want the sprite to rotate at the angle that is relative to the angle of the ground collision. I’m thinking to add in a code saying that “if the player is grounded and the angle of the collided object is not 0, then rotate to relative rotation” of some sort. I’m not sure how to execute in the “rotate to relative rotation” part though. The player body is a RigidBody2D, not a kinematic body.