getAngleFromPlayer method

double getAngleFromPlayer()

Get angle between enemy and player player as a base

Implementation

double getAngleFromPlayer() {
  Player? player = gameRef.player;
  if (player == null) return 0.0;
  return getAngleFromTarget(player);
}