Duration is optional

This commit is contained in:
samme 2019-05-28 14:08:03 -07:00
parent 5018061751
commit 7125334677

View file

@ -4,7 +4,7 @@
* @typedef {object} Phaser.Types.GameObjects.PathFollower.PathConfig
* @since 3.0.0
*
* @property {number} duration - The duration of the path follow in ms. Must be `> 0`.
* @property {number} [duration=1000] - The duration of the path follow in ms. Must be `> 0`.
* @property {number} [from=0] - The start position of the path follow, between 0 and 1. Must be less than `to`.
* @property {number} [to=1] - The end position of the path follow, between 0 and 1. Must be more than `from`.
* @property {boolean} [positionOnPath=false] - Whether to position the PathFollower on the Path using its path offset.