public class ItemPositionHistory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ItemPositionHistory.PositionTime
The Class PositionTime.
|
Modifier and Type | Field and Description |
---|---|
IItem |
item
The item.
|
java.util.List<ItemPositionHistory.PositionTime> |
positions
The positions.
|
com.jme3.math.Vector2f |
velocity
The velocity.
|
Constructor and Description |
---|
ItemPositionHistory(IItem item)
Instantiates a new item position history.
|
Modifier and Type | Method and Description |
---|---|
void |
add(com.jme3.math.Vector2f position,
long timeStampMillis)
Adds the.
|
void |
clear()
Clear.
|
com.jme3.math.Vector2f |
getVelocity()
screen units per second
|
void |
setStage(IStage stage)
Sets the stage.
|
public IItem item
public java.util.List<ItemPositionHistory.PositionTime> positions
public com.jme3.math.Vector2f velocity
public ItemPositionHistory(IItem item)
item
- the itempublic void add(com.jme3.math.Vector2f position, long timeStampMillis)
position
- the positiontimeStampMillis
- the time stamp millispublic void clear()
public com.jme3.math.Vector2f getVelocity()
public void setStage(IStage stage)
stage
- the new stage