Browse Source

Bones documentation

Jason Sturges 4 years ago
parent
commit
be49002ce2
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/Bones/bone.ts
  2. 2 2
      src/Bones/skeleton.ts

+ 2 - 2
src/Bones/bone.ts

@@ -84,7 +84,7 @@ export class Bone extends Node {
      * @param localMatrix defines the local matrix
      * @param localMatrix defines the local matrix
      * @param restPose defines the rest pose matrix
      * @param restPose defines the rest pose matrix
      * @param baseMatrix defines the base matrix
      * @param baseMatrix defines the base matrix
-     * @param index defines index of the bone in the hiearchy
+     * @param index defines index of the bone in the hierarchy
      */
      */
     constructor(
     constructor(
         /**
         /**
@@ -485,7 +485,7 @@ export class Bone extends Node {
     }
     }
 
 
     /**
     /**
-     * Set the postion of the bone in local or world space
+     * Set the position of the bone in local or world space
      * @param position The position to set the bone
      * @param position The position to set the bone
      * @param space The space that the position is in
      * @param space The space that the position is in
      * @param mesh The mesh that this bone is attached to.  This is only used in world space
      * @param mesh The mesh that this bone is attached to.  This is only used in world space

+ 2 - 2
src/Bones/skeleton.ts

@@ -251,7 +251,7 @@ export class Skeleton implements IAnimatable {
     }
     }
 
 
     /**
     /**
-     * Creater a new animation range
+     * Create a new animation range
      * @param name defines the name of the range
      * @param name defines the name of the range
      * @param from defines the start key
      * @param from defines the start key
      * @param to defines the end key
      * @param to defines the end key
@@ -319,7 +319,7 @@ export class Skeleton implements IAnimatable {
         var ret = true;
         var ret = true;
         var frameOffset = this._getHighestAnimationFrame() + 1;
         var frameOffset = this._getHighestAnimationFrame() + 1;
 
 
-        // make a dictionary of source skeleton's bones, so exact same order or doublely nested loop is not required
+        // make a dictionary of source skeleton's bones, so exact same order or doubly nested loop is not required
         var boneDict: { [key: string]: Bone } = {};
         var boneDict: { [key: string]: Bone } = {};
         var sourceBones = source.bones;
         var sourceBones = source.bones;
         var nBones: number;
         var nBones: number;