Route is an object that allows to build flexible and smooth straight lines (splines). Both Varwin objects and the Player can move along these straight lines. The Route cannot work without its two obligatory components:

  • Route point - route elements between which a line (route segment) is built. There can be as many such elements in the route as you like, but the more of them there are, the more load on your PC
  • Route carriage - an object, the purpose of which is to transport the objects nested in it, in the hierarchy. You can build a route without a carriage, but without it it will be useless.

Let's look at each object separately

RouteLink to Route

InspectorLink to Inspector

МаршрутLink to Маршрут

  • Show path - displays the route trajectory in edit mode
  • Show path in play mode
  • Loop path - merge the starting point of the route with the last one. The route becomes closed
  • Color - draw the trajectory in the specified colour.
  • Rounding - rounding of corners at the intersection points of segments (route points). The higher the value, the better the rounding is

BlocklyLink to Blockly

VariablesLink to Variables

Returns the route object

FunctionsLink to Functions

Obtaining a turn/position/smoothed turn on a route section (0 to 100) N

Route pointLink to Route point

InspectorLink to Inspector

Route pointLink to Route point

  • Speed multiplier (0.01 - 100) - sets a certain speed on the section of the route related to this route point
  • Look at object - specifies the object to which the route carriage should turn at this point.

    This function will not work without the Turn Smoothing checkbox checked in the Route Carriage object

BlocklyLink to Blockly

VariablesLink to Variables

Returns the specified waypoint

Route carriageLink to Route carriage

InspectorLink to Inspector

Route carriageLink to Route carriage

Smooth turns - enables smooth turns to an object specified at a Waypoint

This function will not work without Turn to object set in the Waypoint object

BlocklyLink to Blockly

VariablesLink to Variables

Returns the specified route caret

LogicLink to Logic

Check if you are currently travelling along a route

ActionsLink to Actions

Perform pause/continue carriage travel along the route

Complete the route within the specified time (in seconds)

Move along the route at a speed of S metres per second