Skip to content

Commit

Permalink
Put x,y,z version of setPosition first in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Jul 2, 2015
1 parent 96e9b61 commit 5214a54
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/scene/scene_graphnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,20 +685,20 @@ pc.extend(pc, function () {
* @function
* @name pc.GraphNode#setPosition
* @description Sets the world space position of the specified graph node.
* @param {pc.Vec3} position world space position (xyz) of graph node.
* @param {Number} x x-coordinate of world-space position.
* @param {Number} y y-coordinate of world-space position.
* @param {Number} z z-coordinate of world-space position.
* @example
* var position = new pc.Vec3(0, 10, 0);
* this.entity.setPosition(position);
* this.entity.setPosition(0, 10, 0);
*/
/**
* @function
* @name pc.GraphNode#setPosition^2
* @description Sets the world space position of the specified graph node.
* @param {Number} x x-coordinate of world-space position.
* @param {Number} y y-coordinate of world-space position.
* @param {Number} z z-coordinate of world-space position.
* @param {pc.Vec3} position world space position (xyz) of graph node.
* @example
* this.entity.setPosition(0, 10, 0);
* var position = new pc.Vec3(0, 10, 0);
* this.entity.setPosition(position);
*/
setPosition: function () {
var position = new pc.Vec3();
Expand Down

0 comments on commit 5214a54

Please sign in to comment.