I’m working on game character AI for movement. Here is what the mesh is supposed to do:
- Move for a certain amount of time along X/Z axes (let’s say 3 seconds).
- After 3 seconds, stop, rotate along the Y axis for a random value (Math.PI, Math.PI/2, Math.PI/4, etc.).
- After rotation, travel along LOCAL X/Z axes for 3 seconds.
- Repeat on loop.
Here’s the PG I created that incorporates some of these elements:
I’m obviously missing the timed stops, and the movement along updated local axes