PathListMover
From Crumbled World Wiki
Constructor
| function | description |
|---|---|
| pathListMover(float Speed) |
Functions
| return | function | description |
|---|---|---|
| setSpeed(float speed) | Set speed in m/s | |
| addList(table points) | Add new set of cordinates to pass through. | |
| setList(table points) | set the cordinates to pass through. | |
| bool | willReachEnd() | Will all points in the list bee done if we checkout the next position. |
| Vec3 | getNextPos() | Get the next position. |
| Vec3 | travelDistance(float distance) | returns next position on the line |
| Vec3 | getVelocity() | Get the curent velocity. |
| int | size() | Get tnumber of points left to visit. |
| float | getLength() | Total distance left |
| float | getTraversedLength() | Get distance traveld. |
| VectorVec3 | getList() | Get remaining points. |