getAngleFromTarget method

double getAngleFromTarget(
  1. GameComponent target
)

Get angle between this comp to target

Implementation

double getAngleFromTarget(GameComponent target) {
  return BonfireUtil.angleBetweenPointsOffset(
    rectCollision.center,
    target.rectCollision.center,
  );
}