B2d_body_apply_torque - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Applies the given torque force in newtons to the given body.
Parameters
Parameter | Description |
---|---|
id | index of the body |
torque | force to apply as torque (Newtons) |
Return Values
void: This function does not return anything.
Example Call
// demonstrates applying a torque of 10N to the body
b2d_body_apply_torque(mybody, 10);
NOTOC