相機跟隨目標

相機
伺服器端與客戶端
可在 Mobile 端和 PC 端使用

設定相機實體的位置始終跟隨目標實體

聲明

func SetCameraFollow(camera entity<Entity>, target entity<Entity>, offset Vector3, coordinateSystem CoordinateSystemType)
go

參數

輸入

名稱 類型 描述
相機 Entity 目標相機實體
目標 Entity 要跟隨的目標實體
偏移 Vector3 距離目標實體座標的偏移量
坐標系 CoordinateType 偏移量的座標系