Is there a way to keep angle for two entities?
-
- Posts: 13
- Joined: Wed Aug 31, 2011 9:47 pm
Is there a way to keep angle for two entities?
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?
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
-
- Posts: 13
- Joined: Wed Aug 31, 2011 9:47 pm
Re: Is there a way to keep angle for two entities?
Thanks. I will try these joints.