Menu
Lumberyard
Legacy Reference

Movement Nodes

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

You can use the following flow graph nodes to specify entity movements.

MoveEntityTo node

Used to move an entity to a destination position at a defined speed or in a defined interval of time.

Inputs

Port Type Description
Destination Vec3 Position of the destination.
DynamicUpdate Boolean Indicates if destination position is to be followed if it changes.
ValueType Integer Type of input: Speed, Time,
Value Float Speed (m/sec) or Time (sec) value
EaseInDistance Float Distance from destination at which the entity starts slowing down
EaseOutDistance Float Distance from destination at which the entity starts speeding up
CoordSys Integer Coordinate system of the destination: Parent, World, or Local.
Start Any Starts movement
Stop Any Stops movement

Outputs

Port Type Description
Current Vec3 Current position
OnStart Any Activated when Start is triggered
OnStop Any Activated when Stop is triggered
Finish Any Activated when destination is reached
Done Any Activated when destination is reached or Stop is triggered.

RotateEntity node

Used to rotate an entity at a defined speed.

Inputs

Port Type Description
Enable Any Enables updates
Disable Any Disables updates
Velocity Vec3 Angular velocity (degrees/sec)
CoordSys Integer Coordinate system for rotation: World, Local

Outputs

Port Type Description
CurrentDegrees Vec3 Current rotation in degrees
CurrentRadians Vec3 Current rotation in radians

RotateEntityTo node

Used to rotate an entity at a defined speed or in a defined interval of time.

Inputs

Port Type Description
Destination Vec3 Destination position (in degrees)
DynamicUpdate Boolean If dynamic updates are enabled or not
ValueType Integer Type of input value: Speed (m/sec) or Time (sec)
Value Float Value of Speed or Time
CoordSys Integer Coordinate system of the destination: Parent, World, Local
Start Any Starts movement
Stop Any Stops movement

Outputs

Port Type Description
CurrentDeg Vec3 Current rotation in degrees
CurrentRad Vec3 Current rotation in radians
OnStart Any Activated when Start input is triggered
OnStop Any Activated when Stop input is triggered
Finish Any Activated when destination rotation is reached
Done Any Activated when destination rotation is reached or Stop is triggered