The question is answered, right answer was accepted
Changing gravity depending on character/camera rotation
Greetings everyone!
I'm currently working on a 2D platformer puzzle game. You are playing as a square and I have not locked the rotation, and I have centered the camera around the player. That means the player and camera will rotate if they walk over an edge, or jump and hitting a corner of the block.
What I wish to do is change the gravity direction, when the player/camera rotate 90 degrees (left, right, up and normal). I have tried to search around the internet but I haven't found anything useful.
I'm using the unity built-in gravitational system and rigidbodies, but I'm willing to change if needed.
Thanks for taking your time reading this!
Follow this Question
Related Questions
how would I make a capsule rotate and go down a platform on the y axis? 0 Answers
2D Physics movement system is creating unexplained random variations. 0 Answers
Rigidbody2D falls slowly with MovePosition? 1 Answer
"Is Kinematic" required? 1 Answer
I want to make my camera follow the player ONLY when the player is on solid ground [2D] 0 Answers