05-23-2015, 12:33 AM
So i'm revisiting trying to use curves for 3Dpathfinding/avoidance, and i've got it setting smooth/safe paths for my AI ships.
There are a few cases that i'd like some help with:
1: The distance to the destination is too small, and it crams a bunch of CV's into a small area at weird positions, causing the path to get squiggly.
2: The destination is behind my ship. so the first major bend gets increasingly sharp, no matter how much i scale the handles
3: I'm limiting the up/down rotation of the ships, so figuring out a minimum turn radius, and constructing a Y directional spiral to allow the ships to move up towards their desired height, before continuing along their X/Z plane.
Any suggestions?
There are a few cases that i'd like some help with:
1: The distance to the destination is too small, and it crams a bunch of CV's into a small area at weird positions, causing the path to get squiggly.
2: The destination is behind my ship. so the first major bend gets increasingly sharp, no matter how much i scale the handles
3: I'm limiting the up/down rotation of the ships, so figuring out a minimum turn radius, and constructing a Y directional spiral to allow the ships to move up towards their desired height, before continuing along their X/Z plane.
Any suggestions?