相机注视目标

摄像机
Both Server and Client
Both Mobile and PC

设置相机实体始终朝向目标实体

声明

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

参数

输入

名称 类型 描述
相机实体 Entity 目标相机实体
目标 Entity 目标实体
偏移 Vector3 注视点距离目标坐标的偏移量
坐标系 CoordinateType 偏移量的坐标系