AndrewSidereal
Member
I'm working on a behavior which has fireflies swarm around the player once the player gets near. I extended the "wander" node to stop wandering after a random number of seconds and return success, so it can then seek out the player again. Currently, when the firefly changes target destinations, it immediately stops going the direction it was going in and then goes in the new direction. I would like it to be a more like an arcing flight path. I reduced the angular rotation rate, but it just causes the local rotation to be lower. I would like the firefly to always be facing exactly in the direction it is moving (fireflies can't fly sideways or backwards) and always travel 'forward' and when the destination changes, have the firefly gradually change its "facing" angle to face the new destination. This should better approximate forward flight. I'm discussing a firefly, but this is more of a general issue with flying AI.
Here's a video, to demonstrate it:
Here's a video, to demonstrate it: