Options
All
  • Public
  • Public/Protected
  • All
Menu

Adds a circular collision shape to the entity. Avoid attaching both a CircleCollider2D and a BoxCollider2D to the same entity. If you do, the BoxCollider2D takes precedence and the CircleCollider2D is ignored.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional radius: number
    • Optional pivot: Vector2

    Returns CircleCollider2D

Properties

pivot

pivot: Vector2

Center point of the collider, relative to the object's local space.

radius

radius: number

Radius of the collision circle.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static pivot

Static radius

Methods

Static _dtorFn

Static _fromPtr

Static _tempHeapPtr

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc