29 if (
from.getContainingLocation() != ghost.
getEntity().getContainingLocation() || !
from.isAlive()) {
33 super.advance(amount, ghost);
36 dir = Misc.getAngleInDegrees(
from.getLocation(), ghost.
getEntity().getLocation());
40 Vector2f loc = Misc.getUnitVectorAtDegreeAngle(
dir);
42 Vector2f.add(loc, ghost.
getEntity().getLocation(), loc);