- Home /
Question by
spawn273 · Mar 18, 2014 at 05:32 AM ·
rotationjointconfigurablejoint
Configurable joint, rotation limiting
I rotate object on desired angle with this:
public void rotate(Vector3 rotation)
{
joint.targetRotation = Quaternion.Euler(rotation) * joint.targetRotation;
}
And i need to limit possible rotation of my object.
I tried to just sum the input angles and compare them with limits but it does not work, because in one position axisX responsible for 'roll', while in other position axisX is 'yaw'. Same with built-in angular limits.
I'm really stuck on this, can somebody help?
Comment
Answer by LSPressWorks · Aug 05, 2014 at 04:14 AM
I am seeking a solution to a similar problem so if anyone has got this, please let us know.