- Home /
Problem is not reproducible or outdated
How to make an object always face the ground?
Hello, I'm making a racing game and I would like for the car to always face the ground. Would I need a character controller, and if so what should I use in script, or a regular rigidbody, and if so what should I use in script?
can't quite understand what are you trying to do.Could you open your question a little
Answer by zephyr7 · Nov 03, 2013 at 06:40 PM
Hey, I'm not entirely sure if this is but you mean, but i'll try to help:
If you want to make sure physics don't end up making your car "look" anywhere but to the ground, you would have to use a ridgidbody and enable freeze rotation on the x and y axis(or other ones if your game faces elsewhere).
Answer by trmhtk2_unity · Oct 26, 2021 at 07:45 AM
use this: transform.eulerangles.y = ground.transform.eulerangles.y;
Follow this Question
Related Questions
Can't use Rigidbody or Character Controller 0 Answers
Stop objects from going through each other with rigidbodies 1 Answer
How Character controller can push another character controller? 0 Answers
Question about pushing objects, "Animate Physics" and Rigidbodies 0 Answers
Which is more demanding on a computer, lots of CCcharacters or lots of Rigidcharacters? 1 Answer