Question by
unity_sVpc7hMGgGwtBw · Mar 27, 2020 at 10:26 PM ·
rotationcollision
How do I unlock Z axis rotation after collision with an obstacle?
Due to issues with friction against the ground causing my player object to rotate, I locked the Z axis rotation. However I need a way to disable this lock when the player collides with an obstacle to sent the player into an uncontrollable spin before the game restarts. Any help would be greatly appreciated.
Comment
Your answer
Follow this Question
Related Questions
Rotate player based on collision normal,Rotate player 180 degrees depending on collision normal 0 Answers
Rotate camera on collision of character 1 Answer
I have two RaycastHit2Ds but only one is activating 0 Answers
How to stop object rotation when FPSController collides with object? 0 Answers
how can I align a rotating block that falls onto another with the correct face? 2 Answers