Skip to content

Commit 8861464

Browse files
committed
PathFollower concept
1 parent a534629 commit 8861464

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

v3/src/paths/PathFollower.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
var Class = require('../utils/Class');
2+
var Vector2 = require('../math/Vector2');
3+
4+
var PathFollower = new Class({
5+
6+
initialize:
7+
8+
function PathFollower (path, gameObject, t)
9+
{
10+
if (t === undefined) { t = 0; }
11+
12+
this.path = path;
13+
14+
this.gameObject = gameObject;
15+
16+
this.t = t;
17+
18+
//
19+
20+
// this.useFrames = false;
21+
},
22+
23+
update: function (time, delta)
24+
{
25+
26+
}
27+
28+
});
29+
30+
module.exports = PathFollower;

0 commit comments

Comments
 (0)