@@ -574,13 +574,13 @@ class GraphNode extends EventHandler {
574
574
* @function
575
575
* @name GraphNode#getEulerAngles
576
576
* @description Get the world space rotation for the specified GraphNode in Euler angle
577
- * form. The order of the returned Euler angles is XYZ . The value returned by this function
577
+ * form. The rotation is returned as euler angles in a { @link Vec3} . The value returned by this function
578
578
* should be considered read-only. In order to set the world-space rotation of the graph
579
579
* node, use {@link GraphNode#setEulerAngles}.
580
580
* @returns {Vec3 } The world space rotation of the graph node in Euler angle form.
581
581
* @example
582
- * var angles = this.entity.getEulerAngles(); // [0,0,0]
583
- * angles[1] = 180; // rotate the entity around Y by 180 degrees
582
+ * var angles = this.entity.getEulerAngles();
583
+ * angles.y = 180; // rotate the entity around Y by 180 degrees
584
584
* this.entity.setEulerAngles(angles);
585
585
*/
586
586
getEulerAngles ( ) {
@@ -592,13 +592,13 @@ class GraphNode extends EventHandler {
592
592
* @function
593
593
* @name GraphNode#getLocalEulerAngles
594
594
* @description Get the rotation in local space for the specified GraphNode. The rotation
595
- * is returned as euler angles in a 3-dimensional vector where the order is XYZ . The
595
+ * is returned as euler angles in a { @link Vec3} . The
596
596
* returned vector should be considered read-only. To update the local rotation, use
597
597
* {@link GraphNode#setLocalEulerAngles}.
598
598
* @returns {Vec3 } The local space rotation of the graph node as euler angles in XYZ order.
599
599
* @example
600
600
* var angles = this.entity.getLocalEulerAngles();
601
- * angles[1] = 180;
601
+ * angles.y = 180;
602
602
* this.entity.setLocalEulerAngles(angles);
603
603
*/
604
604
getLocalEulerAngles ( ) {
@@ -610,12 +610,12 @@ class GraphNode extends EventHandler {
610
610
* @function
611
611
* @name GraphNode#getLocalPosition
612
612
* @description Get the position in local space for the specified GraphNode. The position
613
- * is returned as a 3-dimensional vector . The returned vector should be considered read-only.
613
+ * is returned as a { @link Vec3} . The returned vector should be considered read-only.
614
614
* To update the local position, use {@link GraphNode#setLocalPosition}.
615
615
* @returns {Vec3 } The local space position of the graph node.
616
616
* @example
617
617
* var position = this.entity.getLocalPosition();
618
- * position[0] += 1; // move the entity 1 unit along x.
618
+ * position.x += 1; // move the entity 1 unit along x.
619
619
* this.entity.setLocalPosition(position);
620
620
*/
621
621
getLocalPosition ( ) {
@@ -626,7 +626,7 @@ class GraphNode extends EventHandler {
626
626
* @function
627
627
* @name GraphNode#getLocalRotation
628
628
* @description Get the rotation in local space for the specified GraphNode. The rotation
629
- * is returned as a quaternion . The returned quaternion should be considered read-only.
629
+ * is returned as a { @link Quat} . The returned quaternion should be considered read-only.
630
630
* To update the local rotation, use {@link GraphNode#setLocalRotation}.
631
631
* @returns {Quat } The local space rotation of the graph node as a quaternion.
632
632
* @example
@@ -640,7 +640,7 @@ class GraphNode extends EventHandler {
640
640
* @function
641
641
* @name GraphNode#getLocalScale
642
642
* @description Get the scale in local space for the specified GraphNode. The scale
643
- * is returned as a 3-dimensional vector . The returned vector should be considered read-only.
643
+ * is returned as a { @link Vec3} . The returned vector should be considered read-only.
644
644
* To update the local scale, use {@link GraphNode#setLocalScale}.
645
645
* @returns {Vec3 } The local space scale of the graph node.
646
646
* @example
@@ -672,9 +672,9 @@ class GraphNode extends EventHandler {
672
672
/**
673
673
* @function
674
674
* @name GraphNode#getPosition
675
- * @description Get the world space position for the specified GraphNode. The
676
- * value returned by this function should be considered read-only. In order to set
677
- * the world-space position of the graph node, use {@link GraphNode#setPosition}.
675
+ * @description Get the world space position for the specified GraphNode. The position
676
+ * is returned as a { @link Vec3}. The value returned by this function should be considered read-only.
677
+ * In order to set the world-space position of the graph node, use {@link GraphNode#setPosition}.
678
678
* @returns {Vec3 } The world space position of the graph node.
679
679
* @example
680
680
* var position = this.entity.getPosition();
@@ -689,8 +689,8 @@ class GraphNode extends EventHandler {
689
689
/**
690
690
* @function
691
691
* @name GraphNode#getRotation
692
- * @description Get the world space rotation for the specified GraphNode in quaternion
693
- * form . The value returned by this function should be considered read-only. In order
692
+ * @description Get the world space rotation for the specified GraphNode. The rotation
693
+ * is returned as a { @link Quat} . The value returned by this function should be considered read-only. In order
694
694
* to set the world-space rotation of the graph node, use {@link GraphNode#setRotation}.
695
695
* @returns {Quat } The world space rotation of the graph node as a quaternion.
696
696
* @example
@@ -708,7 +708,8 @@ class GraphNode extends EventHandler {
708
708
* @description Get the world space scale for the specified GraphNode. The returned value
709
709
* will only be correct for graph nodes that have a non-skewed world transform (a skew can
710
710
* be introduced by the compounding of rotations and scales higher in the graph node
711
- * hierarchy). The value returned by this function should be considered read-only. Note
711
+ * hierarchy). The scale is returned as a {@link Vec3}.
712
+ * The value returned by this function should be considered read-only. Note
712
713
* that it is not possible to set the world space scale of a graph node directly.
713
714
* @returns {Vec3 } The world space scale of the graph node.
714
715
* @example
0 commit comments