Class GravityForce

java.lang.Object
de.gurkenlabs.litiengine.physics.Force
de.gurkenlabs.litiengine.physics.GravityForce

public class GravityForce extends Force
  • Constructor Details

    • GravityForce

      public GravityForce(IEntity forceEntity, float strength, Direction direction)
    • GravityForce

      public GravityForce(IEntity forceEntity, float strength, float angle)
  • Method Details

    • getForceEntity

      public IEntity getForceEntity()
      Gets the force entity.
      Returns:
      the force entity
    • getLocation

      public Point2D getLocation()
      Description copied from class: Force
      Gets the location.
      Overrides:
      getLocation in class Force
      Returns:
      the location