All Implemented Interfaces:
ConstJoltPhysicsObject, ConstShape, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>

public class PlaneShape extends Shape
A Shape to represent a surface defined by a plane.
  • Constructor Details

    • PlaneShape

      public PlaneShape(ConstPlane plane)
      Instantiate the specified shape without creating a settings object.
      Parameters:
      plane - the plane to use (not null, unaffected)
    • PlaneShape

      public PlaneShape(ConstPlane plane, ConstPhysicsMaterial material)
      Instantiate the specified shape without creating a settings object.
      Parameters:
      plane - the plane to use (not null, unaffected)
      material - the desired surface properties (unaffected) or null for default properties (default=null)
    • PlaneShape

      public PlaneShape(ConstPlane plane, ConstPhysicsMaterial material, float halfExtent)
      Instantiate the specified shape without creating a settings object.
      Parameters:
      plane - the plane to use (not null, unaffected)
      material - the desired surface properties (unaffected) or null for default properties (default=null)
      halfExtent - the desired radius of the bounding box (>0, default=1000)
  • Method Details

    • getPlane

      public ConstPlane getPlane()
      Copy the shape's surface. The shape is unaffected.
      Returns:
      a new object