package de.gurkenlabs.litiengine.physics;

import java.awt.geom.Point2D;

import de.gurkenlabs.litiengine.Direction;
import de.gurkenlabs.litiengine.entities.IEntity;
import de.gurkenlabs.litiengine.util.geom.GeometricUtilities;

public class GravityForce extends Force {
  private final Direction direction;

  /** The force entiy. */
  private final IEntity forceEntiy;

  public GravityForce(final IEntity forceEntity, final float strength, final Direction dir) {
    super(forceEntity.getCenter(), strength, 0);
    this.forceEntiy = forceEntity;
    this.direction = dir;
    this.setCancelOnCollision(false);
    this.setCancelOnReached(false);
  }

  /**
   * Gets the force entiy.
   *
   * @return the force entiy
   */
  public IEntity getForceEntiy() {
    return this.forceEntiy;
  }

  @Override
  public Point2D getLocation() {
    return GeometricUtilities.project(this.getForceEntiy().getCenter(), Direction.toAngle(this.direction), Math.max(this.forceEntiy.getHeight(), this.forceEntiy.getWidth() * 2 + this.getStrength()));
  }
}

@@ -370,24 +370,25 @@
 ty forceEnti
+t
 y;%0D%0A%0D%0A  publ
@@ -544,16 +544,17 @@
 orceEnti
+t
 y = forc
@@ -704,16 +704,17 @@
 rce enti
+t
 y.%0D%0A   *
@@ -742,16 +742,17 @@
 rce enti
+t
 y%0D%0A   */
@@ -782,16 +782,17 @@
 orceEnti
+t
 y() %7B%0D%0A 
@@ -815,16 +815,17 @@
 orceEnti
+t
 y;%0D%0A  %7D%0D
@@ -929,16 +929,17 @@
 orceEnti
+t
 y().getC
@@ -1001,24 +1001,25 @@
 is.forceEnti
+t
 y.getHeight(
@@ -1035,16 +1035,17 @@
 orceEnti
+t
 y.getWid

Fix another typo