JoeJ wrote:Yes, but the joint can not generate a torque which would match such wind. No way.
If the small balls orientation would be fixed to the world space, then it could.
But there is no such fixed link. The box must fall down.
The only way to prevent the fall for the joint would be to move the ball to the right, resembling to make a step.
If anyone else is reading this, please help me out! Julio must be stopped!
Tell us what you think guys!
I do not know else I can explain it, but I think I can.
I commited a test that add an angle drag to the to body.
if you check it now, you will see that as the angular momentum is * out of the system, the joint can goes back to the equilibrium position to are familiar with.
the mat does not lie. is is this equation.
- Code: Select all
const ndFloat32 relPosit = (jacobian0.m_linear * posit0 + jacobian1.m_linear * posit1).AddHorizontal().GetScalar();
const ndFloat32 relVeloc = (jacobian0.m_linear * veloc0 + jacobian0.m_angular * omega0 + jacobian1.m_linear * veloc1 + jacobian1.m_angular * omega1).AddHorizontal().GetScalar();
const ndFloat32 accel = CalculateSpringDamperAcceleration(desc.m_timestep, m_linearSpring * 10.0f, relPosit, m_linearDamper * 0.01f, relVeloc);
the relative position is no zero, so the contribution to the acceleration is not zero.
the ball is not spinning, so this contribution is zero
but the turn jacobian1.m_angular * omega1 is no zero, and is just happen that it no mater what the value the relative posit is, but increasing omega it will get to a point that will cancer the linear contribution. so and that point the torque generated by gravity is cancelled by the toque generated by the joint.
if you sync you will see precisely that behavior, and maybe is make more sense to you now.,
what it mean is that it need and active joint to consume the momentum, because it is conserved at all time. this is actually work quiet well joe.
please check it out one more time,
and you will see it now that when consuming that momentum added by the nudge it returns to the family aquarium. what is mean it that the equilibrium point is different base of the momentum in the system. In is in fact a remarkable emerging behavior Joe.