Class: PointerConstraint

Phaser.Physics.Matter. PointerConstraint

[description]


new PointerConstraint(scene, world, options)

Parameters:
Name Type Description
scene Phaser.Scene

[description]

world Phaser.Physics.Matter.World

[description]

options object

[description]

Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 18)

Members


active :boolean

[description]

Type:
  • boolean
Since: 3.0.0
Default Value:
  • true
Source: src/physics/matter-js/PointerConstraint.js (Line 103)

camera :Phaser.Cameras.Scene2D.Camera

[description]

Type:
Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 73)

constraint :object

[description]

Type:
  • object
Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 122)

pointer :Phaser.Input.Pointer

[description]

Type:
Since: 3.0.0
Default Value:
  • null
Source: src/physics/matter-js/PointerConstraint.js (Line 93)

position :Phaser.Math.Vector2

The transformed position.

Type:
Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 113)

scene :Phaser.Scene

[description]

Type:
Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 55)

world :Phaser.Physics.Matter.World

[description]

Type:
Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 64)

Methods


destroy()

[description]

Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 264)

getBodyPart(body, position)

[description]

Parameters:
Name Type Description
body MatterJS.Body

[description]

position Phaser.Math.Vector2

[description]

Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 162)
Returns:

[description]

Type
boolean

onDown(pointer)

[description]

Parameters:
Name Type Description
pointer Phaser.Input.Pointer

[description]

Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 138)

onUp()

[description]

Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 151)

update()

[description]

Since: 3.0.0
Source: src/physics/matter-js/PointerConstraint.js (Line 204)