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 positionto the name of the first entity. Set theDestinationto the name of another entity. - Create
motion_manager. Set theTarget to affectto the name of the first entity. Set theFacingto the name of yourcalc_velocity_path.