I'm learning and experimenting with love2d physics library,
Specifically The MotorJoint, in the wiki (https://love2d.org/wiki/MotorJoint) it is summarized like
But it just offers function to get and set linear and angular offsets, it doesn't offer ways to set the force and torque it can apply to the second body for it to 'control the motion' as far as I can tell.Controls the relative motion between two Bodies. Position and rotation offsets can be specified, as well as the maximum motor force and torque that will be applied to reach the target offsets.'
WhenI look at the box2d docs (https://box2d.org/documentation/group__ ... joint.html) their motorjoint also has:
Code: Select all
void b2MotorJoint_SetMaxForce (b2JointId jointId, float maxForce)
Set the motor joint maximum force, typically in newtons.
float b2MotorJoint_GetMaxForce (b2JointId jointId)
Get the motor joint maximum force, typically in newtons.
void b2MotorJoint_SetMaxTorque (b2JointId jointId, float maxTorque)
Set the motor joint maximum torque, typically in newton-meters.
float b2MotorJoint_GetMaxTorque (b2JointId jointId)
Get the motor joint maximum torque, typically in newton-meters.