b2d_body_apply_torque(id,torque)

From ENIGMA

Jump to: navigation, search

Description

Applies the given torque force in newtons to the given body.

Parameters

Parameter Data Type Description
id integer index of the body
torque double force to apply as torque, in 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);
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox