Class EmptyShape

All Implemented Interfaces:
Comparable<NativePhysicsObject>

public class EmptyShape extends CollisionShape
An empty collision shape based on Bullet's btEmptyShape.
  • Field Details

    • logger2

      public static final Logger logger2
      message logger for this class
  • Constructor Details

    • EmptyShape

      public EmptyShape(boolean unused)
      Instantiate an empty shape.
      Parameters:
      unused - for compatibility with Minie
  • Method Details

    • unscaledVolume

      public float unscaledVolume()
      Return the volume of the shape.
      Returns:
      0
    • canSplit

      public boolean canSplit()
      Test whether the shape can be split by an arbitrary plane.
      Overrides:
      canSplit in class CollisionShape
      Returns:
      true
    • maxRadius

      public float maxRadius()
      Calculate how far the shape extends from its center.
      Overrides:
      maxRadius in class CollisionShape
      Returns:
      0
    • scaledVolume

      public float scaledVolume()
      Return the volume of the shape, including scale and margin.
      Overrides:
      scaledVolume in class CollisionShape
      Returns:
      0