A proxy is an object that can be added to a broad-phase collision detection algorithm. Users of the collision part of the library can move an axis-aligned bounding box of a proxy through BroadPhase class.

Variables

userData:Any

Extra field that users can use for their own purposes. Do not modify this property if you use the physics part of the library, as the physics part of the library uses this property for connecting proxies and shapes of rigid bodies.

Methods

getFatAabb():Aabb

Returns the fat AABB of the proxy.

getFatAabbTo(aabb:Aabb):Void

Sets aabb to the fat AABB of the proxy.

This does not create a new instance of Aabb.

getId():Int

Returns the unique id of the proxy.