wima
    Preparing search index...

    Class Collider2D

    This class makes a body tangible to collision detection and response.Without it,the body will not be able to interact with other bodies.

    Index

    Constructors

    Properties

    angle: number = 0
    geometry: Geometry

    Keeps the original normals and vertices of this shape.

    type: number = ShapeType.POLYGON

    Used to determine what type of shape this is.

    vertices: Vector2[]

    The vertices describing the shape.

    Circle: number = 0
    POLYGON: number = 1

    Methods