- 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_colorandone_way_route_colorindebug_draw_map_nodesfunction.
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_wayargument tomap_add_routefunction, to able to add just one-way route. - Added
is_remove_one_wayargument tomap_remove_routefunction, to able to remove just one-way route or both between two nodes. - Added
map_remove_nodefunction to remove a node and it's connected routes to it. - Added
map_update_node_positionfunction to update node positions. now the entire map can move dynamically. - Added
map_set_propertiesfunction to replace module default settings. move_initializefunction getsinitial_face_vectoras a vector3 to calculate game object face direction based on this value. setting this value tonilwill disable rotation tracking system androtationfield in move result table will always benil.move_playerfunction no longer needsthresholdas an argument.move_initializefunction now getssettings_go_thresholdas a number and you do need to callmove_initializeif 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 tonilwill fall back to the module default value.- Adding
settings_path_curve_tightness,settings_path_curve_roundness,settings_path_curve_max_distance_from_cornerandsettings_allow_enter_on_routetomove_initializearguments. you can overwrite these values for a single game object by them. setting these values tonilwill fall back to the module default value. - Added
rotationto move result table that returned from functionmove_playerand 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_intersectionargument todebug_draw_player_movefunction to allow debugger mark/not mark intersections of game object path. - version 3 is tagged as
v3in GitHub repository.
