public void targetLocation() {
        PhysicsComponent ownPC = (PhysicsComponent)getOwningActor().getComponent("PhysicsComponent");
        WeaponsComponent wc = (WeaponsComponent)getOwningActor().getComponent("WeaponsComponent");
        
        if(ownPC != null && withinRadius(Math.abs(ownPC.getX() - attackTargetX), Math.abs(ownPC.getY() - attackTargetY), wc.getRange())) {
            ownPC.setTarget(attackTargetX, attackTargetY);

            if(ownPC.getAngleRad() < ownPC.getTargetAngle() + 0.1 && ownPC.getAngleRad() > ownPC.getTargetAngle() - 0.1) {
                if(wc != null) {
                    Application.get().getEventManager().queueEvent(new FireWeaponEvent(owner));
                }
            }
        }        
    }