Skip to main content

CollisionGroupManager

Static class for managing collision groups in excalibur, there is a maximum of 32 collision groups possible in excalibur

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

publicstaticgroups

  • Get all collision groups currently tracked by excalibur


    Returns CollisionGroup[]

Methods

publicstaticcreate

  • Create a new named collision group up to a max of 32.


    Parameters

    • name: string

      Name for the collision group

    • optionalmask: number

      Optionally provide your own 32-bit mask, if none is provide the manager will generate one

    Returns CollisionGroup

publicstaticgroupByName

  • Get a collision group by it's name


    Parameters

    • name: string

    Returns CollisionGroup

publicstaticreset

  • reset(): void
  • Resets the managers internal group management state


    Returns void