how to get internal forces in constrains ?
Posted: Sun Mar 06, 2016 10:45 am
I have two boxes that are constrained by a RevoluteJoint. I want to know the internal forces that are exerted on the joint, satisfying the constrain. It should be in the form of a direction plus the magnitude of the force.
the code of the objects system are the following:
the code of the objects system are the following:
Code: Select all
Box b1 = new Box(new Vector3(0, 2, -10), 1, 0.3f, 0.3f);
AttachWithSkin(game, b1, CubeBlue);
space.Add(b1);
Box b2 = new Box(b1.Position + Vector3.UnitY * -b1.Height, 1, 0.3f, 0.3f,1);
AttachWithSkin(game, b2, CubeModel);
space.Add(b2);
Vector3 j_position = b1.Position + Vector3.UnitX * b1.Width / 2 + Vector3.UnitY * -b1.Height / 2;
space.Add(new RevoluteJoint(b1, b2, j_position, Vector3.UnitZ));