聲明
func CreateLookAt(target entity<Entity>, lookAtTarget entity<Entity>, offset Vector3, coordinateSystem CoordinateSystemType, out var createdEntity entity<LookAt>, autoPlay bool)
go
參數
輸入
名稱 | 類型 | 描述 |
---|---|---|
目標 | Entity | 目標實體 |
注視目標 | Entity | 注視的物件實體 |
偏移 | Vector3 | 注視點距離物件實體的偏移量 |
坐標系 | CoordinateType | 使用的座標系 |
立即播放 | Bool | 建立後是否自動開始播放 |
輸出
名稱 | 類型 | 描述 |
---|---|---|
創建的實體 | PlayableLookAt | 所建立的注視跟隨運動實體 |