Is there a way to keep angle for two entities?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
DreamWeaver
Posts: 13
Joined: Wed Aug 31, 2011 9:47 pm

Is there a way to keep angle for two entities?

Post 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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

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

Post 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
DreamWeaver
Posts: 13
Joined: Wed Aug 31, 2011 9:47 pm

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

Post by DreamWeaver »

Thanks. I will try these joints.
Post Reply