Previous Up Next

MBOXprojection
This is the static collision test. It supposes that an object with a specific radius is placed in _position_. It projects this expected position to the network of inboxes, searching the closest position in which the object is fully inside one box. It returns this box and the projected position.
This function tests with each box of the session. Use it only once and from then, use MBOXmove

[Box [I I I]] MBOXprojection (
SBox _session_
[I I I] _position_
I _radius_
)
Parameters

_session_
inbox session
_position_
any vector
_radius_
radius of an object
Return value

return a couple (new englobing box, new position)