创建注视跟随

可播放
Both Server and Client
Both Mobile and PC

创建注视跟随运动,目标实体会保持朝向指定对象

声明

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 创建的注视跟随运动实体