|
9 | 9 | <body> |
10 | 10 | <h1>[name]</h1> |
11 | 11 |
|
12 | | - <div class="desc">todo</div> |
| 12 | + <div class="desc">Runs a keyframe animation as imported from the [page:ColladaLoader].</div> |
| 13 | + |
| 14 | + <h2>Examples</h2> |
| 15 | + |
| 16 | + <div>[example:webgl_loader_collada_keyframe loader / collada / keyframe ]</div> |
13 | 17 |
|
14 | 18 |
|
15 | 19 | <h2>Constructor</h2> |
16 | 20 |
|
17 | 21 |
|
18 | | - <h3>[name]([page:todo root], [page:todo data], [page:todo JITCompile])</h3> |
| 22 | + <h3>[name]([page:Object data])</h3> |
19 | 23 | <div> |
20 | | - root -- todo <br /> |
21 | | - data -- todo <br /> |
22 | | - JITCompile -- todo |
| 24 | + data -- An individual animation object from a the [page:ColladaLoader], e.g. loadedColladaObj.animations[0] <br /> |
23 | 25 | </div> |
24 | 26 | <div> |
25 | | - todo |
| 27 | + Creates a new keyframe animation and initializes it to the first keyframes. |
26 | 28 | </div> |
27 | 29 |
|
28 | 30 |
|
29 | 31 | <h2>Properties</h2> |
30 | 32 |
|
31 | | - <h3>[property:todo root]</h3> |
| 33 | + <h3>[property:Object3D root]</h3> |
32 | 34 | <div> |
33 | | - todo |
| 35 | + The root object of the animation |
34 | 36 | </div> |
35 | 37 |
|
36 | | - <h3>[property:todo data]</h3> |
| 38 | + <h3>[property:Object data]</h3> |
37 | 39 | <div> |
38 | | - todo |
| 40 | + The data containing the animation |
39 | 41 | </div> |
40 | 42 |
|
41 | | - <h3>[property:todo hierarchy]</h3> |
| 43 | + <h3>[property:Array hierarchy]</h3> |
42 | 44 | <div> |
43 | | - todo |
| 45 | + The objects that are influenced by the animation. |
44 | 46 | </div> |
45 | 47 |
|
46 | 48 | <h3>[property:number currentTime]</h3> |
47 | 49 | <div> |
48 | | - todo |
| 50 | + The time elapsed since the last start/restart of the animation. |
49 | 51 | </div> |
50 | 52 |
|
51 | 53 | <h3>[property:number timeScale]</h3> |
52 | 54 | <div> |
53 | | - todo |
| 55 | + How much to scale the speed of the animation. Defaults to 1. |
54 | 56 | </div> |
55 | 57 |
|
56 | 58 | <h3>[property:boolean isPlaying]</h3> |
57 | 59 | <div> |
58 | | - todo |
| 60 | + Indicates whether the animation is playing. This shouldn't be adapted by user code. |
59 | 61 | </div> |
60 | 62 |
|
61 | 63 | <h3>[property:boolean isPaused]</h3> |
62 | 64 | <div> |
63 | | - todo |
| 65 | + Indicates whether the animation is paused. This shouldn't be adapted by user code. |
64 | 66 | </div> |
65 | 67 |
|
66 | 68 | <h3>[property:boolean loop]</h3> |
67 | 69 | <div> |
68 | | - todo |
| 70 | + Set to make the animation restart when the animation ends. |
69 | 71 | </div> |
70 | 72 |
|
71 | | - <h3>[property:boolean JITCompile]</h3> |
72 | | - <div> |
73 | | - todo |
74 | | - </div> |
75 | | - |
76 | 73 | <h2>Methods</h2> |
77 | 74 |
|
78 | | - <h3>[method:todo play]()</h3> |
| 75 | + <h3>[method:null play]([page:Number startTime])</h3> |
79 | 76 | <div> |
80 | | - todo |
| 77 | + Starts the animation at the startTime (in seconds) of the animation. |
81 | 78 | </div> |
82 | 79 |
|
83 | | - <h3>[method:todo pause]()</h3> |
84 | | - <div> |
85 | | - todo |
86 | | - </div> |
87 | | - |
88 | | - <h3>[method:todo stop]()</h3> |
89 | | - <div> |
90 | | - todo |
91 | | - </div> |
92 | | - |
93 | | - <h3>[method:todo update]([page:todo deltaTimeMS])</h3> |
94 | | - <div> |
95 | | - deltaTimeMS -- todo |
96 | | - </div> |
| 80 | + <h3>[method:null stop]()</h3> |
97 | 81 | <div> |
98 | | - todo |
| 82 | + Stops the animation. |
99 | 83 | </div> |
100 | 84 |
|
101 | | - <h3>[method:todo interpolateCatmullRom]([page:todo points], [page:todo scale])</h3> |
| 85 | + <h3>[method:null update]([page:Float deltaTime])</h3> |
102 | 86 | <div> |
103 | | - points -- todo <br /> |
104 | | - scale -- todo |
| 87 | + deltaTime -- The change in time in seconds |
105 | 88 | </div> |
106 | 89 | <div> |
107 | | - todo |
| 90 | + Updates the keyframe animation |
108 | 91 | </div> |
109 | 92 |
|
110 | | - <h3>[method:todo getNextKeyWith]([page:todo sid], [page:todo h], [page:todo key])</h3> |
| 93 | + <h3>[method:Object getNextKeyWith]([page:String sid], [page:Integer h], [page:Integer key])</h3> |
111 | 94 | <div> |
112 | | - sid -- todo <br /> |
113 | | - h -- todo <br /> |
114 | | - key -- todo |
| 95 | + sid -- The string id <br /> |
| 96 | + h -- The index in the heirarchy to use<br /> |
| 97 | + key -- The index of which key to start from |
115 | 98 | </div> |
116 | 99 | <div> |
117 | | - todo |
| 100 | + Used internally to traverse the animation |
118 | 101 | </div> |
119 | 102 |
|
120 | | - <h3>[method:todo getPrevKeyWith]([page:todo sid], [page:todo h], [page:todo key])</h3> |
| 103 | + <h3>[method:Object getPrevKeyWith]([page:String sid], [page:Integer h], [page:Integer key])</h3> |
121 | 104 | <div> |
122 | | - sid -- todo <br /> |
123 | | - h -- todo <br /> |
124 | | - key -- todo |
| 105 | + sid -- The string id <br /> |
| 106 | + h -- The index in the heirarchy to use<br /> |
| 107 | + key -- The index of which key to start from |
125 | 108 | </div> |
126 | 109 | <div> |
127 | | - todo |
| 110 | + Used internally to traverse the animation |
128 | 111 | </div> |
129 | | - <h2>Source</h2> |
130 | 112 |
|
131 | 113 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] |
132 | 114 | </body> |
|
0 commit comments