Class PhysicsProcess.PhysicsWorld.PhysicsBody

java.lang.Object
mindustry.async.PhysicsProcess.PhysicsWorld.PhysicsBody
All Implemented Interfaces:
QuadTree.QuadTreeObject
Enclosing class:
PhysicsProcess.PhysicsWorld

public static class PhysicsProcess.PhysicsWorld.PhysicsBody extends Object implements QuadTree.QuadTreeObject
  • Field Details

    • x

      public float x
    • y

      public float y
    • radius

      public float radius
    • mass

      public float mass
    • layer

      public int layer
    • collided

      public boolean collided
    • local

      public boolean local
  • Constructor Details

    • PhysicsBody

      public PhysicsBody()
  • Method Details

    • hitbox

      public void hitbox(Rect out)
      Description copied from interface: QuadTree.QuadTreeObject
      Fills the out parameter with this element's rough bounding box. This should never be smaller than the actual object, but may be larger.
      Specified by:
      hitbox in interface QuadTree.QuadTreeObject