Package de.gurkenlabs.litiengine.physics
Class GravityForce
java.lang.Object
de.gurkenlabs.litiengine.physics.Force
de.gurkenlabs.litiengine.physics.GravityForce
public class GravityForce
extends ForceConstructor 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 IEntitygetForceEntity()Gets the force entity.java.awt.geom.Point2DgetLocation()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:ForceGets the location.- Overrides:
getLocationin classForce- Returns:
- the location
