Circle
View sourceCircle representation created by Collider2D.circle.
Enum
Selects the geometric representation stored by a Collider2D.
Use ShapeType.POLYGON for vertex-based polygon shapes and
ShapeType.Circle for the center-and-radius circle representation.
import { Collider2D, ShapeType } from '@wimaengine/narrowphase'
const collider = Collider2D.circle(1)
const isCircle = collider.type === ShapeType.CircleCircle representation created by Collider2D.circle.
Polygon representation created by Collider2D.rectangle, Collider2D.triangle, and Collider2D.line.