public class Ball extends MovableObject
Constructor and Description |
---|
Ball(float radius,
float ballDecay)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getCollisionDistance() |
double |
getPossibleSpeed()
Calculate the maximum possible speed this object can move at in m/cycle
|
float |
getRadius() |
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) |
equals, getFuturePosition, getFuturePositions, getOldSpeed, getSpeed, isMoving, updateFromAudio
getAge, 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, getDirectionTo, getDirectionTo, getDistanceToXY, getDistanceToXY, getDistanceToXYZ, getDistanceToXYZ, getInformationSource, getLastSeenTime, getLocalPosition, getName, getPosition, getPreviousPosition, isLaying, isVisible
public double getPossibleSpeed()
MovableObject
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 MovableObject
localPosition
- - the local position as observed in the root body
systemglobalPosition
- - the calculated global position of this visible
objecttime
- - time the current absolute timepublic double getCollisionDistance()
getCollisionDistance
in interface IVisibleObject
getCollisionDistance
in class VisibleObject
public float getRadius()
public void updateNoVision(float globalTime)
updateNoVision
in class MovableObject
globalTime
-