Previous Up Next

MBOXmove
This is the incremental collision test function. Say an object with a specific radius is currently in the inbox _box_, and this object is moving to a new place _position_. This function 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.
There is a few drawbacks in this method, but test is quite fast.

[Box [I I I]] MBOXmove (
SBox _session_
Box _box_
[I I I] _position_
I _radius_
)
Parameters

_session_
inbox session
_box_
current englobing box of an object
_position_
expected position of the object
_radius_
radius of the object
Return value

return a couple (new englobing box, new position)