SurfaceObserver.SetVolumeAsOrientedBox

Switch to Manual
public void SetVolumeAsOrientedBox (Vector3 origin, Vector3 extents, Quaternion orientation);

Parameters

origin所请求观察体的原点。
extents所请求观察体的范围(以米为单位)。
orientation所请求观察体的朝向。

Description

This method sets the observation volume as an oriented box at the requested location. Successive calls can be used to reshape the observation volume and/or to move it in the Scene as needed. Extents are the distance from the center of the box to its edges along each axis.

如果观察体非常大,则调用 SurfaceObserver.Update 的开销将随着可观察表面的数量增加而增加。