public class Movement extends Object
Constructor and Description |
---|
Movement()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Force |
getForce()
Get the current force (active reference, not a copy).
|
boolean |
isDecreasingHorizontal()
Check if movement is horizontally decreasing.
|
boolean |
isIncreasingHorizontal()
Check if movement is horizontally decreasing.
|
void |
reset()
Reset the force to zero.
|
void |
setForceToReach(double fh,
double fv)
Set the force to reach.
|
void |
setForceToReach(Force force)
Set the force to reach.
|
void |
setSensibility(double sensibility)
Set the sensibility value.
|
void |
setVelocity(double velocity)
Set the movement velocity.
|
void |
update(double extrp)
Update the movement by updating the force calculation.
|
public void update(double extrp)
extrp
- The extrapolation value.public void reset()
public void setForceToReach(Force force)
force
- The force to reach.public void setForceToReach(double fh, double fv)
fh
- The horizontal force.fv
- The vertical force.public void setVelocity(double velocity)
velocity
- The movement velocity.public void setSensibility(double sensibility)
sensibility
- The sensibility value.public Force getForce()
public boolean isDecreasingHorizontal()
true
if horizontally decreasing, false
else.public boolean isIncreasingHorizontal()
true
if horizontally decreasing, false
else.Copyright © 2014 Byron 3D Games Studio. All rights reserved.