0.0887 AI Ship twirling around

    Joined
    Sep 6, 2012
    Messages
    396
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    Theres a certain condition where AI ships suddenly start to twirl around their own axis.
    It seems to happen most often when they are close and try to get a bearing on you. Also when I shot them when they are very close to me.
    Maybe a problem with finding the right direction to turn towards you? Or conflicting orders between fly away and turn to offender?
     

    schema

    Cat God
    Joined
    Feb 17, 2012
    Messages
    1,552
    Reaction score
    2,604
    • Schine
    Haha, yeah, I've not yet found the reason why they would start twirling sometimes ^^
     
    Joined
    Sep 8, 2012
    Messages
    35
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I think adding a delta to make it so that the ship moves or looks at a point with some amount of error. So instead of moving directly to (4,6,7). Moving to (4.1,5.9,7.1), (3.9,6.2,6.8), (3.9,6.1,6.9), etc. would also be acceptable.
    Another way to think of it is instead of moving to a point move to an area around that point or a sphere. Bounding spheres are cheap so you could test to see if the center of the ship is with in the sphere without much of a slow down.