Function IGraphUpdateContext.DirtyBounds
void DirtyBounds (
bounds |
Mark a particular region of the world as having been changed.
This should be used whenever graphs are changed.
This is used to recalculate off-mesh links that touch these bounds, and it will also ensure GraphModifier events are callled.
The bounding box should cover the surface of all nodes that have been updated. It is fine to use a larger bounding box than necessary (even an infinite one), though this may be slower, since more off-mesh links need to be recalculated. You can even use an infinitely large bounding box if you don't want to bother calculating a more accurate one. You can also call this multiple times to dirty multiple bounding boxes.