- Home /
Question by
Sparkline · Feb 20, 2014 at 09:39 PM ·
rotationrigidbody2dangleslope
How to change an angle of object with Rigidbody2D in a specific range?
My player is running on horizontal surface and slopes. So I want player to rotate according to slope angle. I guess if I will allow my rigidbody change angle in specific range I will goal. Any suggestions? Thanks!
bfh.jpg
(38.6 kB)
Comment
The typical solution is to Raycast down towards the surface and align with character with the normal of the hit.
Your answer
Follow this Question
Related Questions
Align child object to grounds normal(slopes) 2 Answers
2D Torque rotation - stop at certain angle 0 Answers
Sliding game slope jittering. 0 Answers