Pārlūkot izejas kodu

Update Animation.html

gero3 11 gadi atpakaļ
vecāks
revīzija
94646cf11f
1 mainītis faili ar 42 papildinājumiem un 44 dzēšanām
  1. 42 44
      docs/api/extras/animation/Animation.html

+ 42 - 44
docs/api/extras/animation/Animation.html

@@ -9,134 +9,132 @@
 	<body>
 		<h1>[name]</h1>
 
-		<div class="desc">todo</div>
+		<div class="desc">This class animates an object based on an hierarchy.This hierarchy can be Object3Ds or bones.</div>
 
 
 		<h2>Constructor</h2>
 
 
-		<h3>[name]([page:todo root], [page:todo name], [page:todo interpolationType])</h3>
+		<h3>[name]([page:Object3d root], [page:String name])</h3>
 		<div>
-		root -- todo <br />
-		name -- todo <br />
-		interpolationType -- todo
+		root -- The mesh to animate. <br />
+		name -- The name of the animation
 		</div>
 		<div>
-		todo
+		Creates an animation for root. The animation data is gathered from AnimationHandler based on its name.
 		</div>
 
 		<h2>Properties</h2>
 
-		<h3>.[page:todo root]</h3>
+		<h3>.[page:Object3d root]</h3>
 		<div>
-		todo
+		The root object of the animation.
 		</div> 
 
-		<h3>.[page:todo data]</h3>
+		<h3>.[page:Object data]</h3>
 		<div>
-		todo
+		The data containing the animation
 		</div> 
 		
-		<h3>.[page:todo hierarchy]</h3>
+		<h3>.[page:Array hierarchy]</h3>
 		<div>
-		todo
+		The objects that are influenced by the animation.
 		</div>
 
 		<h3>.[page:number currentTime]</h3>
 		<div>
-		todo
+		The time elapsed since the last start/restart of the animation.
 		</div>
 		
 		<h3>.[page:number timeScale]</h3>
 		<div>
-		todo
+		The timez 
 		</div>
 
 		<h3>.[page:boolean isPlaying]</h3>
 		<div>
-		todo
+		Indicates whether the animation is playing. This shouldn't be adapted by user code.
 		</div>
 		
 		<h3>.[page:boolean isPaused]</h3>
 		<div>
-		todo
+		Indicates whether the animation is paused. This shouldn't be adapted by user code.
 		</div>
 		
 		<h3>.[page:boolean loop]</h3>
 		<div>
-		todo
+		Set to make the animation restart when the animation ends.
 		</div> 
 		
 		<h3>.[page:number interpolationType]</h3>
 		<div>
-		todo
+		The type to indicate how to interpolate between 2 data points.
 		</div> 
 
 		<h3>.[page:array points]</h3>
 		<div>
-		todo
+		This should be removed from the code.(TODO).
 		</div>
 		
 		<h3>.[page:Vector3 target]</h3>
 		<div>
-		todo
+		This should be removed from the code.(TODO).
 		</div>
 
 		<h2>Methods</h2>
 		
-		<h3>.play() [page:todo]</h3>
+		<h3>.play([page:Number startTime])</h3>
 		<div>
-		todo
+		Starts the animation from a moment startTime in the animation.
 		</div>
 
-		<h3>.pause() [page:todo]</h3>
+		<h3>.pause() </h3>
 		<div>
-		todo
+		Pauses the animation or restarts the animation after pausing it.
 		</div>
 
-		<h3>.stop() [page:todo]</h3>
+		<h3>.stop()</h3>
 		<div>
-		todo
+		Stops the animation.
 		</div>
 
-		<h3>.update([page:todo deltaTimeMS]) [page:todo]</h3>
+		<h3>.update([page:Number deltaTimeMS]) [page:todo]</h3>
 		<div>
-		deltaTimeMS -- todo
+		deltaTimeMS -- The time of the between the previous frame and this frame in miliseconds. 
 		</div>
 		<div>
-		todo
+		Updates the animation in time. This shouldn't be called by user code. The animationHandler calls this method.
 		</div>
 
-		<h3>.interpolateCatmullRom([page:todo points], [page:todo scale]) [page:todo]</h3>
+		<h3>.interpolateCatmullRom([page:Array points], [page:Number scale]) [page:array]</h3>
 		<div>
-		points -- todo <br />
-		scale -- todo
+		points -- The 4 control point to calculate CatMullRom <br />
+		scale -- The scale between the previous key and the nex key 
 		</div>
 		<div>
-		todo
+		Interpolates the point based on the key. Is used in update.
 		</div>
 
-		<h3>.getNextKeyWith([page:todo type], [page:todo h], [page:todo key]) [page:todo]</h3>
+		<h3>.getNextKeyWith([page:String type], [page:Object h], [page:Number key]) [page:Object]</h3>
 		<div>
-		type -- todo <br />
-		h -- todo <br />
-		key -- todo
+		type -- The animationtype for the key. Can be "pos", "rot" and "scl".<br />
+		h -- The object of the hierarchy that catins the key <br />
+		key -- The index of the next possible key.
 		</div>
 		<div>
-		todo
+		Gets the next key. Is used in Update.
 		</div>
 
-		<h3>.getPrevKeyWith([page:todo type], [page:todo h], [page:todo key]) [page:todo]</h3>
+		<h3>.getPrevKeyWith([page:String type], [page:Object h], [page:Number key]) [page:Object]</h3>
 		<div>
-		type -- todo <br />
-		h -- todo <br />
-		key -- todo
+		type -- The animationtype for the key. Can be "pos", "rot" and "scl".<br />
+		h -- The object of the hierarchy that contains the key. <br />
+		key -- The index of the prev possible key.
 		</div>
 		<div>
-		todo
+		Gets the previous key. Is used in Update.
 		</div>
 
-
 		<h2>Source</h2>
 
 		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]