Pathing with Waypoints
Posted: Sat Mar 29, 2008 8:06 am
Just had another idea come to me after playing a few more levels. Under the AI commands, there is a variable to activate random way-points, and your entire creation then wanders about. Well what if we were to add another variable Waypoints.
I would format it along these lines ...
waypoints, part#, speed, wp#, wp#, ...
part# - the part that will be doing the moving ( and end up centered on the WPs )
speed - speed of motion
wp# - other parts that act as waypoints (visible or otherwise), which [part#] would move to in order
When the creation hits the last wp, it would move back to wp1 and start over again. This would allow multiple creations to follow their own paths without trying to cypher out the exact placement and rotation speed of parts for the current means of creating movement if you were seeking something a little more complicated.
Main thing to watch would be the link-path of parts. Link the wrong parts and half goes one way while the other goes another or just sits there
I would format it along these lines ...
waypoints, part#, speed, wp#, wp#, ...
part# - the part that will be doing the moving ( and end up centered on the WPs )
speed - speed of motion
wp# - other parts that act as waypoints (visible or otherwise), which [part#] would move to in order
When the creation hits the last wp, it would move back to wp1 and start over again. This would allow multiple creations to follow their own paths without trying to cypher out the exact placement and rotation speed of parts for the current means of creating movement if you were seeking something a little more complicated.
Main thing to watch would be the link-path of parts. Link the wrong parts and half goes one way while the other goes another or just sits there