Starsector 0.97a is out! (02/02/24); New blog post: Anubis-class Cruiser (12/20/24)
Vector2f QVel = query.getVelocity(); engine.addFloatingText(QLoc, "Av-> "+QVel, 20f, Color.RED, beam.getSource(), 1f, .5f); //towards line (not used) Vector2f ToL = V2fPerpendicularDisc(dir, (Sadj < 100 ? Sadj : 100), (DtoL<0? 1:0)); //towards end (just adds 100 velocity each tick, 50 ticks/second) Vector2f ToE = V2fReSize(dir, (Sadj < 100 ? Sadj : 100)); //adjust the velocity (velocity calculator) Vector2f Qre = new Vector2f(QVel.getX()+ToE.getX()/*+ToL.getX()*/, QVel.getY()+ToE.getY()/*+ToL.getY()*/); //setting the velocity QVel.set(Qre); //also tested using //QVel.set(QVel); //observed same 600 speed cap