Browse Source

place holders for test animations.

Ben Houston 10 years ago
parent
commit
516dce8f38
2 changed files with 25 additions and 1 deletions
  1. 24 0
      src/animation/AnimationClip.js
  2. 1 1
      src/animation/KeyframeTrack.js

+ 24 - 0
src/animation/AnimationClip.js

@@ -155,3 +155,27 @@ THREE.AnimationClip.prototype = {
 };
 
 
+THREE.AnimationClip.CreateMorphAnimation = function( morphTargetNames, duration ) {
+	// TODO
+	//  - should create three keys per morphTarget track.
+	//  - one track per morphTarget name.
+};
+
+THREE.AnimationClip.CreateRotationAnimation = function( node, period ) {
+	// TODO
+	//  - create a single track representing the rotation
+	//  - create a few quaternion keys representing the rotation path
+};
+
+THREE.AnimationClip.CreateShakeAnimation = function( node, duration, shakeScale ) {
+	// TODO
+	//  - create a single track representing the shake
+	//  - multiple random vector by shake scalar/vector
+};
+
+
+THREE.AnimationClip.CreatePulsationAnimation = function( node, duration, pulseScale ) {
+	// TODO
+	//  - create a single track representing the shake
+	//  - multiple random vector by pulse scalar/vector
+};

+ 1 - 1
src/animation/KeyframeTrack.js

@@ -20,7 +20,7 @@ THREE.KeyframeTrack = function ( name, keys ) {
 
 THREE.KeyframeTrack.prototype = {
 
-	constructor: THREE.Track,
+	constructor: THREE.KeyframeTrack,
 
 	getAt: function( time ) {
 		console.log( 'KeyframeTrack[' + this.name + '].getAt( ' + time + ' )' );