Class CircleShape

java.lang.Object
com.codename1.gaming.physics.box2d.collision.shapes.Shape
com.codename1.gaming.physics.box2d.collision.shapes.CircleShape

public class CircleShape extends Shape
  • Field Details

    • m_p

      public final Vec2 m_p
  • Constructor Details

    • CircleShape

      public CircleShape()
  • Method Details

    • clone

      public final Shape clone()
      Specified by:
      clone in class Shape
    • getChildCount

      public final int getChildCount()
      Specified by:
      getChildCount in class Shape
    • getSupport

      public final int getSupport(Vec2 d)
    • getSupportVertex

      public final Vec2 getSupportVertex(Vec2 d)
    • getVertexCount

      public final int getVertexCount()
    • getVertex

      public final Vec2 getVertex(int index)
    • testPoint

      public final boolean testPoint(Transform transform, Vec2 p)
      Specified by:
      testPoint in class Shape
    • raycast

      public final boolean raycast(RayCastOutput output, RayCastInput input, Transform transform, int childIndex)
      Specified by:
      raycast in class Shape
    • computeAABB

      public final void computeAABB(AABB aabb, Transform transform, int childIndex)
      Specified by:
      computeAABB in class Shape
    • computeMass

      public final void computeMass(MassData massData, float density)
      Specified by:
      computeMass in class Shape