Regular API function

simGetJointVelocity / sim.getJointVelocity

Description Retrieves the linear or angular velocity of a joint. The velocity is a measured velocity (i.e. from one simulation step to the next), and is available for all joints in the scene.
C synopsis simInt simGetJointVelocity(simInt jointHandle,simFloat* velocity)
C parameters
jointHandle: handle of a joint.
velocity: a pointer that will receive the velocity.
C return value
-1 if operation was not successful
Lua synopsis float velocity=sim.getJointVelocity(int jointHandle)
Lua parameters Similar to the C-function counterpart
Lua return values Similar to the C-function counterpart