getAngleFromTarget method
Get angle between this comp to target
Implementation
double getAngleFromTarget(GameComponent target) {
return BonfireUtil.angleBetweenPointsOffset(
rectCollision.center,
target.rectCollision.center,
);
}
Get angle between this comp to target
double getAngleFromTarget(GameComponent target) {
return BonfireUtil.angleBetweenPointsOffset(
rectCollision.center,
target.rectCollision.center,
);
}