Page 1 of 1

V2 Constraits freeze axis question

Posted: Wed Feb 19, 2020 12:09 pm
by b1fg2
how do i fixed the rotation or position for certain axis in bepu v2 like unity?

https://docs.unity3d.com/ScriptReferenc ... aints.html

Re: V2 Constraits freeze axis question

Posted: Wed Feb 19, 2020 9:46 pm
by Norbo
You can zero out a row of the body's inverse inertia tensor to lock rotation around a body's local axes. There is no equivalent body-intrinsic position lock; you can do similar things with constraints like the LinearAxisServo or, more approximately, just by setting the appropriate component of the position and velocity to 0 every frame.