Skip to content

Commit 95b9ba5

Browse files
committed
Added setPosition and setScale
1 parent b317f89 commit 95b9ba5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/geom/mesh/Model.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,20 @@ var Model = new Class({
739739
return this;
740740
},
741741

742+
setPosition: function (x, y, z)
743+
{
744+
this.position.set(x, y, z);
745+
746+
return this;
747+
},
748+
749+
setScale: function (x, y, z)
750+
{
751+
this.scale.set(x, y, z);
752+
753+
return this;
754+
},
755+
742756
/**
743757
* The x position of this model in 3D space.
744758
*

0 commit comments

Comments
 (0)