• Functions for interacting with Box2D.

Static methods

@:native("get_body")staticgetBody(url:HashOrStringOrUrl):B2Body

  • Get the Box2D body from a collision object

Parameters:

url

The url to the game object collision component.

Returns:

The body if successful. Otherwise Null.

@:native("get_world")staticgetWorld():B2World

  • Get the Box2D world from the current collection. @return The world if successful. Otherwise Null.