Create Along Path Motion

Playable
Tanto lado del cliente como del usuario
Disponible en PC y móvil

Create an interpolated movement along a path to make the object move along the specified path

Declaración

func CreateAlongPathMotion(targetEntity entity<Entity>, path entity<CustomCurvePath>, style TweenStyle, speed float, tangentFacing bool, out var createdEntity entity<AlongPathMotion>, autoPlay bool)
go

Parámetros

Entrada

Nombre Tipo Descripción
Target Entity The target entity
Path CustomCurvePath The path of motion
Style TweenStyle The play method of the interpolation. Options include play once, loop, and play again.
Speed Float The magnitude of velocity
Tangent Facing Bool Whether the object is facing the direction of movement. This property remains unchanged even if the object’s orientation is forcibly modified by other means.
Auto Play Bool Automatically play upon creation

Afuera

Nombre Tipo Descripción
Created Entity AlongPathMotion A name that is used for creating a HUD entity. The local variable it corresponds to is the entity of the HUD being created.