Phaser API Documentation

  Version: 

Member of: Phaser.Math.Vector2

reflect(normal)

Description:

Reflect this Vector off a line defined by a normal.

Parameters:

name type description
normal Phaser.Math.Vector2

A vector perpendicular to the line.

Returns:
Description:

This Vector2.

Since: 3.23.0
Source: src/math/Vector2.js (Line 646)