Package de.gurkenlabs.litiengine.physics
Class GravityForce
java.lang.Object
de.gurkenlabs.litiengine.physics.Force
de.gurkenlabs.litiengine.physics.GravityForce
public class GravityForce
extends Force
Constructor Summary
Constructors Constructor Description GravityForce(IEntity forceEntity, float strength, float angle)
GravityForce(IEntity forceEntity, float strength, Direction direction)
Method Summary
Modifier and Type Method Description IEntity
getForceEntity()
Gets the force entity.java.awt.geom.Point2D
getLocation()
Gets the location.Methods inherited from class de.gurkenlabs.litiengine.physics.Force
cancelOnCollision, cancelOnReached, end, getIdentifier, getStrength, hasEnded, hasReached, setCancelOnCollision, setCancelOnReached, setIdentifier, setLocation, setStrength, toString
Constructor Details
Method Details
getForceEntity
Gets the force entity.- Returns:
- the force entity
getLocation
public java.awt.geom.Point2D getLocation()Description copied from class:Force
Gets the location.- Overrides:
getLocation
in classForce
- Returns:
- the location