创建位置跟随

可播放
Both Server and Client
Both Mobile and PC

创建位置跟随运动,目标实体会跟随指定对象运动

声明

func CreateFollow(target entity<Entity>, followTarget entity<Entity>, offset Vector3, coordinateSystem CoordinateSystemType, out var createdEntity entity<Follow>, autoPlay bool)
go

参数

输入

名称 类型 描述
目标 Entity 目标实体
跟随对象 Entity 跟随运动的对象实体
偏移 Vector3 距离跟随目标坐标的偏移量
坐标系 CoordinateType 使用的坐标系
立即播放 Bool 创建后是否自动开始播放

输出

名称 类型 描述
创建的实体 PlayablePosFollow 创建的跟随运动实体