- Fixed issue with rotation calculation that may cause the game object to scale to flicker. #4
- Added ability for game objects to have curved corner paths.
- Added ability to track game object rotation as move result.
- Added only one ways routes, and added separate arguments
two_way_route_color
andone_way_route_color
indebug_draw_map_nodes
function.
In the above image green line is a two-way path and the light blue line is a one-way path, a little square is placed on a one-way route near the destination, for example in this image the route is one way from node 5 to 6.
- Added separate examples of static and dynamic map nodes.
- Added documentation for module settings.
- Added
is_one_way
argument tomap_add_route
function, to able to add just one-way route. - Added
is_remove_one_way
argument tomap_remove_route
function, to able to remove just one-way route or both between two nodes. - Added
map_remove_node
function to remove a node and it's connected routes to it. - Added
map_update_node_position
function to update node positions. now the entire map can move dynamically. - Added
map_set_properties
function to replace module default settings. move_initialize
function getsinitial_face_vector
as a vector3 to calculate game object face direction based on this value. setting this value tonil
will disable rotation tracking system androtation
field in move result table will always benil
.move_player
function no longer needsthreshold
as an argument.move_initialize
function now getssettings_go_threshold
as a number and you do need to callmove_initialize
if you want to change it. This allows us to prevent situations that a game object always moves with a moving destination node without reaching it, forever. setting this value tonil
will fall back to the module default value.- Adding
settings_path_curve_tightness
,settings_path_curve_roundness
,settings_path_curve_max_distance_from_corner
andsettings_allow_enter_on_route
tomove_initialize
arguments. you can overwrite these values for a single game object by them. setting these values tonil
will fall back to the module default value. - Added
rotation
to move result table that returned from functionmove_player
and you can set game object rotation to it. - Fixed bug that caused a game object to get stuck in a complex intersection.
- Added
is_show_intersection
argument todebug_draw_player_move
function to allow debugger mark/not mark intersections of game object path. - version 3 is tagged as
v3
in GitHub repository.