Home
News
Learn
Download
Examples
Community
Plugins
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Geom.Line
getRandomPoint([point])
Description:
Get a random Point on the Line.
Parameters:
name
type
arguments
description
point
object |
Phaser.Geom.Point
<optional>
An instance of a Point to be modified.
Returns:
Description:
A random Point on the Line.
Type:
Phaser.Geom.Point
Since:
3.0.0
Source:
src/geom/line/Line.js
(Line
129
)
Possible examples