-
Notifications
You must be signed in to change notification settings - Fork 7.1k
/
PathConfig.js
14 lines (14 loc) · 1.02 KB
/
PathConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
* Settings for a PathFollower.
*
* @typedef {object} Phaser.Types.GameObjects.PathFollower.PathConfig
* @since 3.0.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.
* @property {boolean} [rotateToPath=false] - Should the PathFollower automatically rotate to point in the direction of the Path?
* @property {number} [rotationOffset=0] - If the PathFollower is rotating to match the Path, this value is added to the rotation value. This allows you to rotate objects to a path but control the angle of the rotation as well.
* @property {number} [startAt=0] - Current start position of the path follow, must be between `from` and `to`.
*/