Page 1 of 1

Is there a way to keep angle for two entities?

Posted: Mon Sep 05, 2011 12:09 am
by DreamWeaver
There are two cylinders which are bound to ground with "LineSliderJoint" and thus can be rotated around Z-axis. Is it possible to make a constraint which forces these two cylinders to have the same angle? If one cylinder is rotated for 30 degree for some reasons, the second cylinder should also tries to be rotated for 30 degrees, and viсe versa

Re: Is there a way to keep angle for two entities?

Posted: Mon Sep 05, 2011 12:16 am
by Norbo
There are a variety of angular constraints that could do what you need, depending on the specific requirements. If you only want to control a single degree of freedom, then something like the SwivelHingeAngularJoint or TwistJoint would work. This page goes through the different joint types: http://bepuphysics.codeplex.com/wikipag ... umentation

Re: Is there a way to keep angle for two entities?

Posted: Mon Sep 05, 2011 12:20 am
by DreamWeaver
Thanks. I will try these joints.