B2d_world_get_scale - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Gets the number of pixels equal to one meter for the given physics world and returns the result.
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | index of the physics world |
Return Values
integer: Returns the pixel to meter scale of a physics world.
Example Call
// demonstrates obtaining the pixel to meter scale of a physics world
var scale;
scale = b2d_world_get_scale(myworld);
NOTOC