relativeTop method

double relativeTop(
  1. PhysicalEntity<LeapGame> other
)

Defined so it can be overridden by slopes, relative top takes into account the topmost point that could intersect other based on its horizontal position.

Implementation

double relativeTop(PhysicalEntity other) => top;