b2d_body_get_inertia(id)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the inertia of the given physics body and returns the result.

Parameters

Parameter Data Type Description
id integer index of the body

Return Values

double: Returns the inertia of the given physics body.

Example Call

// demonstrates getting the inertia of a physics body
var inertia;
inertia = b2d_body_get_inertia(mybod);