Skip to content

Commit 7125334

Browse files
committed
Duration is optional
1 parent 5018061 commit 7125334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/pathfollower/typedefs/PathConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @typedef {object} Phaser.Types.GameObjects.PathFollower.PathConfig
55
* @since 3.0.0
66
*
7-
* @property {number} duration - The duration of the path follow in ms. Must be `> 0`.
7+
* @property {number} [duration=1000] - The duration of the path follow in ms. Must be `> 0`.
88
* @property {number} [from=0] - The start position of the path follow, between 0 and 1. Must be less than `to`.
99
* @property {number} [to=1] - The end position of the path follow, between 0 and 1. Must be more than `from`.
1010
* @property {boolean} [positionOnPath=false] - Whether to position the PathFollower on the Path using its path offset.

0 commit comments

Comments
 (0)