Skip to content

Commit 8e9aea8

Browse files
committed
Set Camera Position
1 parent 10be573 commit 8e9aea8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

v3/src/camera/Camera.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ var Camera = new Class({
9292
return this;
9393
},
9494

95+
setPosition: function (x, y)
96+
{
97+
this.x = x;
98+
this.y = y;
99+
100+
return this;
101+
},
102+
95103
setSize: function (width, height)
96104
{
97105
this.width = width;

0 commit comments

Comments
 (0)