Page 1 of 1

HingeJointMotor doc

Posted: Thu Nov 22, 2018 5:09 pm
by Psychophanta
Hi!
Not bug, but just to complete info:

There might be interesting to complete info about HingeJointMotor:
HingeJointMotorTarget(#Joint, Angle, Velocity); Applies an angular speed: 'Angle' degrees per 'Velocity' seconds ('Velocity' parameter is not velocity, but time). NOTE the angular value is referred to the stator (attached to EntityID(0)) respect its rotor (attached to EntityID(1)).

EnableHingeJointAngularMotor(#Joint, Enable, TargetVelocity, MaxMotorImpulse); 'TargetVelocity' is an angular speed, in radian/second (seg^-1), given to the stator (attached to EntityID(0)) respect its rotor (attached to EntityID(1)). 'MaxMotorImpulse' is just a torque value, and it is applied only until the stator reaches the 'TargetVelocity' angular speed respect its rotor.