mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Added Spline.addPoint.
This commit is contained in:
parent
8a4fff945c
commit
649fa88f24
1 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,15 @@ var SplineCurve = new Class({
|
|||
this.points = points;
|
||||
},
|
||||
|
||||
addPoint: function (x, y)
|
||||
{
|
||||
var vec = new Vector2(x, y);
|
||||
|
||||
this.points.push(vec);
|
||||
|
||||
return vec;
|
||||
},
|
||||
|
||||
getStartPoint: function ()
|
||||
{
|
||||
return this.points[0];
|
||||
|
|
Loading…
Reference in a new issue