Exemple #1
0
 /**
  * Apply force to the body
  *
  * @param x The amount of force on the X axis
  * @param y The amount of force on the Y axis
  */
 public void applyForce(float x, float y) {
   checkBody();
   jboxBody.applyForce(new Vec2(x, y), new Vec2(0, 0));
 }