Class Ball
java.lang.Object
com.ardor3d.example.benchmark.ball.Ball
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
move
(int areaWidth, int areaHeight) void
setRandomPositionIn
(int areaWidth, int areaHeight)
-
Field Details
-
radius
protected static final int radius- See Also:
-
elastity
protected final double elastity- See Also:
-
maxSpeed
protected final double maxSpeed- See Also:
-
_x
protected double _x -
_y
protected double _y -
_vx
protected double _vx -
_vy
protected double _vy -
_r
protected double _r -
_d
protected double _d -
_d2
protected double _d2
-
-
Constructor Details
-
Ball
public Ball()
-
-
Method Details
-
setRandomPositionIn
public void setRandomPositionIn(int areaWidth, int areaHeight) -
move
public void move(int areaWidth, int areaHeight) -
doCollide
-