Get Bounding Box

關卡物件
客戶端
可在 Mobile 端和 PC 端使用

Get the Bounding Box of the scene object

聲明

func GetBoundingBox(target entity<LevelObject>, out var center Vector3, out var size Vector3)
go

參數

輸入

名稱 類型 描述
目標 LevelObject The scene object to get the bounding box for

輸出

名稱 類型 描述
中心 Vector3 The center of the bounding box
Size Vector3 The size of the bounding box