public double getEscapeAngle?(Bullet b) { return Math.asin(8/b.getVelocity())*getDirection(b); } public double getDistanceTraveled?(Bullet b) { return Point2D.distance(b.getX(), b.getY(), getSourceX?(b), getSourceY?(b)); } public double getDistanceTravelTime?(Bullet b, long time) { return b.getVelocity()*(time-getShotTime?(b)); } |
I think those work, tell me if I got something wrong (and please test it first, just don't eyeball it)) --Chase-san |
I think those work, tell me if I got something wrong (and please test it first, just don't eyeball it)) --Chase-san |