相機聚焦目標

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

設定相機實體始終朝向目標實體

聲明

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

參數

輸入

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