PathListMover: Difference between revisions
From Crumbled World Wiki
(Created page with "{{:pathListMoverExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |pathListMover(float Speed) | |- |} ==Functions== {| class="wikitable" !|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...") |
(No difference)
|
Latest revision as of 13:01, 5 July 2025
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. |