@@ -21,6 +21,35 @@ Don't forget to set up the Waypoint Movement (selecting a Waypoint Group and ord
...
@@ -21,6 +21,35 @@ Don't forget to set up the Waypoint Movement (selecting a Waypoint Group and ord
## How it works
## How it works
If you enable *DrawDebugSpheres* you will see intermediate points that are calculated for every child around every waypoint, depending on last and next waypoint, group formation and offset.
#### Abreast
For abreast formations and also arbitrary formations in the future, we have to differentiate between a child on the outside and inside path.
**1. Outside Path**
If a child is on the outside path the Algorithm creates the following points:
| Name | Details |
|------|---------|
| SpeedUpPoint | On the outside path the child needs to walk a greater distance than the parent, therefore we introduce a point at which the child starts to walk faster than the parent. The walking speed is raised accordingly, so that the child arrives at *FirstPointOfNextPath* at the same time the parent arrives at the Waypoint. This value is however bound to only be a certain amount higher than the parents walking speed to prevent big jumps in speed. |
| LastPointOfCurrentPath| Last point in the current walking direction |
| IntermediatePoint | Additional point to make walking path smoother for big angles |
| FirstPointOfNextPath | Last point that is calculated for the current waypoint. This point points towards the next waypoint and is therefore the first point of the path towards the next waypoint|
TODO...
**2. Inside Path**
TODO...
**Big angles**
TODO
TODO The Movement of childs is always triggered by the parent. In combination with the speed adjustments of the child VHs, it is guaranteed that the formation is always maintained.
#### InLine
TODO This formation is handled in a very simple way so far. The only additional points that are calculated for the child are around the first waypoint. Then every child will walk towards the next waypoint. Therefore, the formation is only formed once around the first waypoint. Distances between child VHs will not be strictly maintained.