相机跟随目标

摄像机
Both Server and Client
Both Mobile and PC

设置相机实体的位置始终跟随目标实体

声明

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

参数

输入

名称 类型 描述
相机实体 Entity 目标相机实体
目标 Entity 要跟随的目标实体
偏移 Vector3 距离目标实体坐标的偏移量
坐标系 CoordinateType 偏移量的坐标系