This function should only be used from the update callback.
while the example code just below all used tick() function calls (this one is for ConstrainAngularVelocity())
function tick()
--Constrain the angular velocity between bodies A and B so that the relative angular velocity
--along the Y axis is always 3 rad/s
ConstrainAngularVelocity(handleA, handleB, Vec(1, 0, 0), 3)
end
Enhancement
Update documentation so that it's not self-contradicting
Document to improve
All 4 constraint functions:
ConstrainVelocity()
ConstrainAngularVelocity()
ConstrainPosition()
ConstrainOrientation()
In description/explanation it says
while the example code just below all used
tick()
function calls (this one is forConstrainAngularVelocity()
)Enhancement
Update documentation so that it's not self-contradicting