A circle shape.

Hierarchy (View Summary)

Constructors

Properties

e_circleShape: number
e_edgeShape: number
e_hitCollide: number

Return value for TestSegment indicating a hit.

e_missCollide: number

Return value for TestSegment indicating a miss.

e_polygonShape: number
e_shapeTypeCount: number
e_unknownShape: number
startsInsideCollide: number

Return value for TestSegment indicating that the segment starting point, p1, is already inside the shape.

Methods

  • Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin, not the centroid.

    Parameters

    • massData: b2MassData

      Calculate the mass, this argument is out.

    • density: number

    Returns void

  • Set the local position of this circle in its parent body.

    Parameters

    • position: b2Vec2

      The new local position of this circle.

    Returns void

  • Set the radius of the circle.

    Parameters

    • radius: number

      The new radius of the circle.

    Returns void