Create Trajectory

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

Creating a Trajectory motion will give the target entity an initial velocity and acceleration with direction

Declaración

func CreateTrajectory(target entity<Entity>, initialVelocity Vector3, acceleration Vector3, maxDisplacement float, out var createdEntity entity<Trajectory>, autoPlay bool)
go

Parámetros

Entrada

Nombre Tipo Descripción
Target Entity target entity
Initial Velocity Vector3 initial velocity
Acceleration Vector3 acceleration of motion
Max. Displacement Float Maximum displacement distance
Auto Play Bool Whether the playback starts automatically after creation

Afuera

Nombre Tipo Descripción
Created Entity PlayableTrajectory Trajectory motion entities created