Class PlaneCollisionShape

All Implemented Interfaces:
Comparable<NativePhysicsObject>

public class PlaneCollisionShape extends CollisionShape
A planar collision shape based on Bullet's btStaticPlaneShape. Not for use in dynamic bodies. Collisions between HeightfieldCollisionShape, MeshCollisionShape, and PlaneCollisionShape objects are never detected. Similarly, collisions between GImpactCollisionShape objects and PlaneCollisionShape objects are never detected.
  • Field Details

    • logger2

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

    • PlaneCollisionShape

      public PlaneCollisionShape(Plane plane)
      Instantiate a plane shape defined by the specified plane.
      Parameters:
      plane - the desired plane (not null, unaffected)
  • Method Details

    • getPlane

      public final Plane getPlane()
      Copy the defining plane.
      Returns:
      a new instance (not null)
    • maxRadius

      public float maxRadius()
      Calculate how far the shape extends.
      Overrides:
      maxRadius in class CollisionShape
      Returns:
      positive infinity