Show:

CGSGCollisionManager Class

Methods

isColliding
(
  • currentNode
  • testedNode
  • threshold
)
Boolean

Indicate if two nodes are colliding

Parameters:
Returns:
Boolean: true if nodes are colliding
manageNode
(
  • node
)

Defines a node as managed by the collision manager

Parameters:
render
(
  • context
  • width
  • height
)

Provided by the Animation module.

Defined in src\effects\class.effect.grayscale.js:41

This function must be filled by the inherited classes.

Parameters:
  • context CanvasRenderingContext2D

    context containing the image

  • width Number

    width for the image to be modified

  • height Number

    height for the image to be modified

render
(
  • context
  • width
  • height
)

Provided by the Animation module.

Defined in src\effects\class.effect.invertcolors.js:41

This function must be filled by the inherited classes.

Parameters:
  • context CanvasRenderingContext2D

    context containing the image

  • width Number

    width for the image to be modified

  • height Number

    height for the image to be modified

render
(
  • context
  • width
  • height
)

Provided by the Animation module.

Defined in src\effects\class.effect.js:40

This function must be filled by the inherited classes.

Parameters:
  • context CanvasRenderingContext2D

    context containing the image

  • width Number

    width for the image to be modified

  • height Number

    height for the image to be modified

unManageNode
(
  • node
)

Defines a node as not managed by the collision manager

Parameters: