Skip to content

Commit f45ee83

Browse files
authored
Using statAt
Including usage to startAt for startFollow method
1 parent 068ba0f commit f45ee83

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gameobjects/pathfollower/PathFollower.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var Vector2 = require('../../math/Vector2');
2323
* @property {boolean} [positionOnPath=false] - Whether to position the PathFollower on the Path using its path offset.
2424
* @property {boolean} [rotateToPath=false] - Should the PathFollower automatically rotate to point in the direction of the Path?
2525
* @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.
26+
* @property {number} [startAt=0] - Current start position of the path follow, between 0 and 1.
2627
*/
2728

2829
/**
@@ -245,6 +246,7 @@ var PathFollower = new Class({
245246
// Override in case they've been specified in the config
246247
config.from = 0;
247248
config.to = 1;
249+
config.startAt = startAt;
248250

249251
// Can also read extra values out of the config:
250252

0 commit comments

Comments
 (0)