Method GetViewSpaceBoundingBox
GetViewSpaceBoundingBox(Matrix4x4, bool)
The axis-aligned bounding box of the group, in a specific reference frame. Note that this result is only valid after DoUpdate has been called. If members are added or removed after that call or change their weights or active state, this will not necessarily return correct information before the next update.
Declaration
public Bounds GetViewSpaceBoundingBox(Matrix4x4 observer, bool includeBehind)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | observer | The frame of reference in which to compute the bounding box |
bool | includeBehind | If true, members behind the observer (negative z) will be included |
Returns
Type | Description |
---|---|
Bounds | The axis-aligned bounding box of the group, in the desired frame of reference |