java.lang.Object
com.ardor3d.example.benchmark.ball.Ball

public class Ball extends Object
  • 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

      public boolean doCollide(Ball b)