HingeJoint.angle with connected body
Hi,
Should hingejoint.angle change when the joint remains fixed but the connected body moves? I would assume the angle be relative to itself and would not change when the connected body moves in the world.
Is this a bug?
Thanks
Is the joint itself moving? HingeJoint.angle is the relative position from the connected body, relative as well to its initial rest position. Therefore, it shouldn't really be moving unless it's not truly fixed. You might want to check if all your settings are correct.
Is it fluctuating a lot, or just by .0001? Floats by nature have a degree of uncertainty due to memory issues, and will sometimes fluctuate a small bit like that.
The joint is moving in world space but only because its connected body is moving - relative to itself it is fixed.
Lets say a door is the hinge joint and the body its connected to is a house. If the house turns 90 degrees but the door stays fully shut shouldn't the door hinge angle remain at 0? I'm seeing it change by 90 degrees.
Your answer