public abstract class MovableObject extends VisibleObject implements IMoveableObject
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getFuturePosition(int when)
Estimate possible future positions.
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D[] |
getFuturePositions(int howMany)
Returns a list of future positions as predicted by the speed.
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getOldSpeed() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getSpeed()
Get current speed
|
boolean |
isMoving() |
void |
updateFromAudio(org.apache.commons.math3.geometry.euclidean.threed.Vector3D localPosition,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D globalPosition,
float time)
Updates this object's position due to hearing
|
void |
updateFromVision(org.apache.commons.math3.geometry.euclidean.threed.Vector3D localPosition,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D globalPosition,
float time)
Updates this object with the latest perception
|
void |
updateNoVision(float globalTime) |
getAge, getCollisionDistance, getDirectionTo, getDirectionTo, getDistanceToXY, getDistanceToXY, getDistanceToXYZ, getDistanceToXYZ, getInformationSource, getLastSeenTime, getLocalPosition, getName, getPosition, getPreviousPosition, hashCode, isLaying, isVisible, setPosition, setVisible, updateNoVision
getClass, notify, notifyAll, toString, wait, wait, wait
getAge, getCollisionDistance, getDirectionTo, getDirectionTo, getDistanceToXY, getDistanceToXY, getDistanceToXYZ, getDistanceToXYZ, getInformationSource, getLastSeenTime, getLocalPosition, getName, getPosition, getPreviousPosition, isLaying, isVisible
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D[] getFuturePositions(int howMany)
IMoveableObject
getFuturePositions
in interface IMoveableObject
howMany
- the minimum number of future positions that should be
returnedpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getFuturePosition(int when)
IMoveableObject
getFuturePosition
in interface IMoveableObject
when
- The minimum number of estimatespublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getSpeed()
IMoveableObject
getSpeed
in interface IMoveableObject
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getOldSpeed()
getOldSpeed
in interface IMoveableObject
public void updateFromVision(org.apache.commons.math3.geometry.euclidean.threed.Vector3D localPosition, org.apache.commons.math3.geometry.euclidean.threed.Vector3D globalPosition, float time)
VisibleObject
updateFromVision
in class VisibleObject
localPosition
- - the local position as observed in the root body
systemglobalPosition
- - the calculated global position of this visible
objecttime
- - time the current absolute timepublic void updateFromAudio(org.apache.commons.math3.geometry.euclidean.threed.Vector3D localPosition, org.apache.commons.math3.geometry.euclidean.threed.Vector3D globalPosition, float time)
VisibleObject
updateFromAudio
in class VisibleObject
globalPosition
- the position of the object in global coordinatespublic boolean isMoving()
isMoving
in interface IMoveableObject
public boolean equals(java.lang.Object o)
equals
in class VisibleObject
public void updateNoVision(float globalTime)
globalTime
-