calc_velocity_path
#
Calculates a vector between start position and destination. Can be used as offset in LV
parameters or as a face direction in motion_manager.
Example: make an entity to constantly face in direction of another entity #
- Create entity (e.g.
item_generic
) that needs to turn to another entity. Give it a name - Create another entity to face. Give it a name.
- Create
calc_velocity_path
. Give it a name. Set theStart position
to the name of the first entity. Set theDestination
to the name of another entity. - Create
motion_manager
. Set theTarget to affect
to the name of the first entity. Set theFacing
to the name of yourcalc_velocity_path
.