Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Math.Vector2
setLength(length)
Description:
Set the length (or magnitude) of this Vector.
Parameters:
name
type
length
number
Returns:
Description:
This Vector2.
Type:
Phaser.Math.Vector2
Since:
3.23.0
Source:
src/math/Vector2.js
(Line
414
)
Possible examples