Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Curves.CubicBezier
getRandomPoint([out])
Description:
Get a random point from the curve.
Parameters:
name
type
arguments
description
out
Phaser.Math.Vector2
<optional>
A point object to store the result in.
Returns:
Description:
The point.
Type:
Phaser.Math.Vector2
Inherited from:
Phaser.Curves.Curve#getRandomPoint
Since:
3.0.0
Source:
src/curves/Curve.js
(Line
349
)
Possible examples