B2d_body_apply_force_center - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Applies the given direction and magnitude of the force in newtons to the given body at the center of mass.

Parameters

Parameter Description
id index of the body
xforce x coordinate representing the direction and magnitude of the force (Newtons)
yforce y coordinate (Newtons)

Return Values

void: This function does not return anything.

Example Call

// demonstrates applying an upwards force of 1000N to the body at its center of mass
b2d_body_apply_force_center(mybody, 0, -1000);

NOTOC