Class: Collider

Phaser.Physics.Arcade. Collider

[description]


new Collider(world, overlapOnly, object1, object2, collideCallback, processCallback, callbackContext)

Parameters:
Name Type Description
world Phaser.Physics.Arcade.World

[description]

overlapOnly boolean

[description]

object1 ArcadeColliderType

The first object to check for collision.

object2 ArcadeColliderType

The second object to check for collision.

collideCallback ArcadePhysicsCallback

The callback to invoke when the two objects collide.

processCallback ArcadePhysicsCallback

The callback to invoke when the two objects collide. Must return a boolean.

callbackContext any

The scope in which to call the callbacks.

Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 9)

Members


active :boolean

[description]

Type:
  • boolean
Since: 3.0.0
Default Value:
  • true
Source: src/physics/arcade/Collider.js (Line 50)

callbackContext :object

[description]

Type:
  • object
Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 105)

collideCallback :ArcadePhysicsCallback

[description]

Type:
Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 87)

name :string

[description]

Type:
  • string
Since: 3.1.0
Source: src/physics/arcade/Collider.js (Line 41)

object1 :ArcadeColliderType

[description]

Type:
Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 69)

object2 :ArcadeColliderType

[description]

Type:
Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 78)

overlapOnly :boolean

[description]

Type:
  • boolean
Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 60)

processCallback :ArcadePhysicsCallback

[description]

Type:
Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 96)

world :Phaser.Physics.Arcade.World

[description]

Type:
Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 32)

Methods


destroy()

[description]

Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 150)

setName(name)

[description]

Parameters:
Name Type Description
name string

[description]

Since: 3.1.0
Source: src/physics/arcade/Collider.js (Line 115)
Returns:

[description]

Type
Phaser.Physics.Arcade.Collider

update()

[description]

Since: 3.0.0
Source: src/physics/arcade/Collider.js (Line 132)