b2d

Functions for interacting with Box2D.

b2d.get_world()

Get the Box2D world from the current collection

Get the Box2D world from the current collection

RETURN

world - the world if successful. Otherwise nil.


b2d.get_body(url)

Get the Box2D body from a collision object

Get the Box2D body from a collision object

PARAMETERS

url - the url to the game object collision component

RETURN

body - the body if successful. Otherwise nil.