Answer the question
In order to leave comments, you need to log in
Fix suspension elements in z-axis in Unity3D?
Good evening dear community.
I'm making a simple game in unity, I decided to attach a suspension to the space module based on wheeljoint2d.
It works great, but there is one caveat.
If the Z-axis is fixed at the suspension elements, then everything looks like this:
And when the ship turns, accordingly, the suspension is always directed downwards.
If you turn off the fixation of the Z axis, then everything seems to be as it should be:
But there is a problem - in this case, the following situation may happen (I marked the direction of the suspension elements with blue arrows):
How can I fix the position relative to the parent element in the gap? For example, so that suspension elements can only rotate within a certain angle:
Thanks in advance for your answer.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question