A
A
Alex Kolyhov2020-05-19 04:19:19
C++ / C#
Alex Kolyhov, 2020-05-19 04:19:19

How to block turns in X?

I need to block rotations along the X axis in FixedUpdate. How can I do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Maximovich, 2020-05-19
@Alex_Kolyhov

If it's a rigidbody then why not use freeze rotation on it

D
DanielMcRon, 2020-05-19
@DanielMcRon

You can limit Mathf.Clamp, but if you do not need to rotate x, then you can just use y and not limit x

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question