1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NeL: NL3D::CTargetAnimCtrl class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"> <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NL3D::CTargetAnimCtrl Class Reference</h1><code>#include <<a class="el" href="a06484.html">target_anim_ctrl.h</a>></code>
<p>
<p>Inheritance diagram for NL3D::CTargetAnimCtrl:
<p><center><img src="a03468.png" usemap="#NL3D::CTargetAnimCtrl_map" border="0" alt=""></center>
<map name="NL3D::CTargetAnimCtrl_map">
<area href="a03836.html" alt="NL3D::IAnimCtrl" shape="rect" coords="0,0,143,24">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
AnimCtrl used to constraint a bone to follow a target, either given by Position or Direction. Typical use for Head control Use TargetMode is better than computing Direction from Previous rendered Bone WorldMatrix (one frame late). The ctrl support AngleBlocking, and MaxBoneAngularSpeed (avoid strange head pop). The Bone must be in RotQuat mode, else the ctrl does nothing. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2003 </dd></dl>
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00048">48</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3">TMode</a> { <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw2">TargetMode</a> = 0,
<a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw0">DirectionMode</a>,
<a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw1">NumMode</a>
}</td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrla0">CTargetAnimCtrl</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#NL3D_1_1CTargetAnimCtrla0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrla1">execute</a> (<a class="el" href="a03399.html">CSkeletonModel</a> *model, <a class="el" href="a02277.html">CBone</a> *bone)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called at compute() time. <a href="#NL3D_1_1CTargetAnimCtrla1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrla2">~CTargetAnimCtrl</a> ()</td></tr>
<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3">TMode</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlo0">Mode</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Target controled or direction controled. Default to DirectionMode. <a href="#NL3D_1_1CTargetAnimCtrlo0"></a><br><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Target and Direction specific</div></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03296.html">CQuat</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_0">CurrentWorldDirection</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For DirectionMode, the WorldRotation to apply to the bone. NB: modified in <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrla1">execute()</a> if TargetMode. <a href="#NL3D_1_1CTargetAnimCtrlz1364_0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_1">EyePos</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For TargetMode only, the Pos of eyes relative to the bone controlled. Default to (0,0,0). <a href="#NL3D_1_1CTargetAnimCtrlz1364_1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_2">WorldTarget</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">For TargetMode, the world Position of the target. <a href="#NL3D_1_1CTargetAnimCtrlz1364_2"></a><br><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Common</div></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03296.html">CQuat</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_0">DefaultWorldDirection</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This give The World Orientation when the Mesh is in bind Pos (default to "LookBack"). <a href="#NL3D_1_1CTargetAnimCtrlz1366_0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_2">MaxAngle</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The Maximum angle of rotation that can be performed between the Default Direction and Current Direction. Default to Pi/3. <a href="#NL3D_1_1CTargetAnimCtrlz1366_2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_3">MaxAngularVelocity</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The Maximum Angular Velocity the ctrl can perform. Default to 2*Pi per second. <a href="#NL3D_1_1CTargetAnimCtrlz1366_3"></a><br><br></td></tr>
<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03296.html">CQuat</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrld0">getCurrentLSRotationFromBone</a> (<a class="el" href="a03399.html">CSkeletonModel</a> *model, <a class="el" href="a02277.html">CBone</a> *bone)</td></tr>
<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlr0">_EnableToDisableTransition</a></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlr1">_LastEnabled</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This tells that a Enable/Disable transition is in progress. <a href="#NL3D_1_1CTargetAnimCtrlr1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03296.html">CQuat</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlr2">_LastLSRotation</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The last rotation computed (in LocalSkeleton Space). Used to smooth transition. <a href="#NL3D_1_1CTargetAnimCtrlr2"></a><br><br></td></tr>
</table>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlw3" doxytag="NL3D::CTargetAnimCtrl::TMode" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> enum <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3">NL3D::CTargetAnimCtrl::TMode</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw2" doxytag="TargetMode" ></a>TargetMode</em> </td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw0" doxytag="DirectionMode" ></a>DirectionMode</em> </td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw1" doxytag="NumMode" ></a>NumMode</em> </td><td>
</td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="a06484.html#l00052">52</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
<div class="fragment"><pre>00052 {<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw2">TargetMode</a>=0, <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw0">DirectionMode</a>, <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw1">NumMode</a>};
</pre></div> </td>
</tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrla0" doxytag="NL3D::CTargetAnimCtrl::CTargetAnimCtrl" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> NL3D::CTargetAnimCtrl::CTargetAnimCtrl </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constructor.
<p>
<p>
Definition at line <a class="el" href="a06483.html#l00040">40</a> of file <a class="el" href="a06483.html">target_anim_ctrl.cpp</a>.
<p>
References <a class="el" href="a06484.html#l00099">_EnableToDisableTransition</a>, <a class="el" href="a06484.html#l00098">_LastEnabled</a>, <a class="el" href="a06484.html#l00075">DefaultWorldDirection</a>, <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw0">DirectionMode</a>, <a class="el" href="a06484.html#l00073">Enabled</a>, <a class="el" href="a06484.html#l00063">EyePos</a>, <a class="el" href="a06484.html#l00077">MaxAngle</a>, <a class="el" href="a06484.html#l00079">MaxAngularVelocity</a>, <a class="el" href="a06484.html#l00056">Mode</a>, <a class="el" href="a05587.html#l00079">NLMISC::Pi</a>, <a class="el" href="a06308.html#l00095">NLMISC::CQuatT< float >::set()</a>, and <a class="el" href="a06484.html#l00061">WorldTarget</a>.
<p>
<div class="fragment"><pre>00041 {
00042 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlo0">Mode</a>= <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw0">DirectionMode</a>;
00043 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_2">WorldTarget</a>= CVector::Null;
00044 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_1">EyePos</a>= CVector::Null;
00045 <span class="comment">// Default Direction to "LookBack".</span>
00046 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_0">DefaultWorldDirection</a>.set(0,0,1,0);
00047 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_2">MaxAngle</a>= (<span class="keywordtype">float</span>)<a class="code" href="a05378.html#a44">Pi</a>/3;
00048 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_3">MaxAngularVelocity</a>= (<span class="keywordtype">float</span>)(2*<a class="code" href="a05378.html#a44">Pi</a>);
00049 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a>= <span class="keyword">true</span>;
00050 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr0">_EnableToDisableTransition</a>= <span class="keyword">false</span>;
00051 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr1">_LastEnabled</a>= <span class="keyword">true</span>;
00052 }
</pre></div> </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrla2" doxytag="NL3D::CTargetAnimCtrl::~CTargetAnimCtrl" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> NL3D::CTargetAnimCtrl::~<a class="el" href="a03468.html">CTargetAnimCtrl</a> </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="a06483.html#l00056">56</a> of file <a class="el" href="a06483.html">target_anim_ctrl.cpp</a>.
<p>
<div class="fragment"><pre>00057 {
00058 }
</pre></div> </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrla1" doxytag="NL3D::CTargetAnimCtrl::execute" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void NL3D::CTargetAnimCtrl::execute </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="a03399.html">CSkeletonModel</a> * </td>
<td class="mdname" nowrap> <em>model</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="a02277.html">CBone</a> * </td>
<td class="mdname" nowrap> <em>bone</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Called at compute() time.
<p>
<p>
Implements <a class="el" href="a03836.html#NL3D_1_1IAnimCtrla0">NL3D::IAnimCtrl</a>.
<p>
Definition at line <a class="el" href="a06483.html#l00062">62</a> of file <a class="el" href="a06483.html">target_anim_ctrl.cpp</a>.
<p>
References <a class="el" href="a06484.html#l00099">_EnableToDisableTransition</a>, <a class="el" href="a06484.html#l00098">_LastEnabled</a>, <a class="el" href="a06484.html#l00095">_LastLSRotation</a>, <a class="el" href="a06308.html#l00053">NLMISC::CAngleAxis::Angle</a>, <a class="el" href="a06394.html#l00098">NL3D::CSkeletonModel::Bones</a>, <a class="el" href="a05587.html#l00115">NLMISC::clamp()</a>, <a class="el" href="a05491.html#l00155">NL3D::CBone::compute()</a>, <a class="el" href="a06308.html#l00139">NLMISC::CQuatT< float >::conjugate()</a>, <a class="el" href="a06484.html#l00065">CurrentWorldDirection</a>, <a class="el" href="a06484.html#l00075">DefaultWorldDirection</a>, <a class="el" href="a06484.html#l00073">Enabled</a>, <a class="el" href="a06484.html#l00063">EyePos</a>, <a class="el" href="a06308.html#l00148">NLMISC::CQuatT< float >::getAngle()</a>, <a class="el" href="a06308.html#l00150">NLMISC::CQuatT< float >::getAngleAxis()</a>, <a class="el" href="a05492.html#l00114">NL3D::CBone::getBoneBase()</a>, <a class="el" href="a06483.html#l00219">getCurrentLSRotationFromBone()</a>, <a class="el" href="a06349.html#l00274">NL3D::CScene::getEllapsedTime()</a>, <a class="el" href="a05492.html#l00112">NL3D::CBone::getFatherId()</a>, <a class="el" href="a05492.html#l00144">NL3D::CBone::getLocalSkeletonMatrix()</a>, <a class="el" href="a06569.html#l00105">NL3D::CTransform::getOwnerScene()</a>, <a class="el" href="a05972.html#l00353">NLMISC::CMatrix::getRot()</a>, <a class="el" href="a06575.html#l00189">NL3D::ITransformable::getTransformMode()</a>, <a class="el" href="a06569.html#l00299">NL3D::CTransform::getWorldMatrix()</a>, <a class="el" href="a05492.html#l00147">NL3D::CBone::getWorldMatrix()</a>, <a class="el" href="a05492.html#l00060">NL3D::CBoneBase::InvBindPos</a>, <a class="el" href="a03297.html#NLMISC_1_1CQuatTz2012_2">NLMISC::CQuatT< float >::makeClosest()</a>, <a class="el" href="a06484.html#l00077">MaxAngle</a>, <a class="el" href="a06484.html#l00079">MaxAngularVelocity</a>, <a class="el" href="a06484.html#l00056">Mode</a>, <a class="el" href="a05972.html#l01170">NLMISC::CMatrix::normalize()</a>, <a class="el" href="a06682.html#l00125">NLMISC::CVector::normed()</a>, <a class="el" href="a03297.html#NLMISC_1_1CQuatTz2010_4">NLMISC::CQuatT< float >::setAngleAxis()</a>, <a class="el" href="a05972.html#l00209">NLMISC::CMatrix::setRot()</a>, <a class="el" href="a06575.html#l00138">NL3D::ITransformable::setRotQuat()</a>, and <a class="el" href="a06484.html#l00061">WorldTarget</a>.
<p>
<div class="fragment"><pre>00063 {
00064 <span class="comment">// no op if req not met</span>
00065 <span class="keywordflow">if</span>(!bone || !model || bone->getTransformMode()!=ITransformable::RotQuat)
00066 <span class="keywordflow">return</span>;
00067
00068 <span class="comment">// If the user changed the Enabled state, must do a transition.</span>
00069 <span class="keywordflow">if</span>(<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr1">_LastEnabled</a>!=<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a>)
00070 {
00071 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr1">_LastEnabled</a>= <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a>;
00072 <span class="comment">// if re-enable the control while completely disabled before</span>
00073 <span class="keywordflow">if</span>(Enabled && !<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr0">_EnableToDisableTransition</a>)
00074 {
00075 <span class="comment">// set the LastLSRotation so that it match the current anim ones.</span>
00076 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr2">_LastLSRotation</a>= <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrld0">getCurrentLSRotationFromBone</a>(model, bone);
00077 }
00078 <span class="comment">// if disable the ctrl, then do a transition first</span>
00079 <span class="keywordflow">if</span>(!Enabled)
00080 {
00081 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr0">_EnableToDisableTransition</a>= <span class="keyword">true</span>;
00082 }
00083 }
00084
00085 <span class="comment">// If not enabled, and not in transition, no op.</span>
00086 <span class="keywordflow">if</span>( !<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a> && !<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr0">_EnableToDisableTransition</a>)
00087 <span class="keywordflow">return</span>;
00088
00089 <span class="comment">// If Target mode, compute CurrentWorldDirection</span>
00090 <span class="comment">// ***********</span>
00091 <span class="comment">// NB: does need to compute direction if disabled (even if in transition)</span>
00092 <span class="keywordflow">if</span>(<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlo0">Mode</a>==<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3NL3D_1_1CTargetAnimCtrlw2">TargetMode</a> && <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a>)
00093 {
00094 <span class="comment">// get the eye pos in world.</span>
00095 CVector worldEye= bone->getWorldMatrix()*<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_1">EyePos</a>;
00096 <span class="comment">// get the world dir</span>
00097 CVector worldDir= (<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_2">WorldTarget</a> - worldEye).normed();
00098 <span class="comment">// get the associated quat</span>
00099 CMatrix mat;
00100 mat.setRot(CVector::I, worldDir, CVector::K);
00101 mat.normalize(CMatrix::YZX);
00102 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_0">CurrentWorldDirection</a>= mat.getRot();
00103 }
00104
00105
00106 <span class="comment">// compute rotation to apply In LocalSkeleton Space</span>
00107 <span class="comment">// ***********</span>
00108 CQuat currentLSRotation;
00109
00110 <span class="comment">/* Get the Skeleton default WorldMatrix (bind pos). used later</span>
00111 <span class="comment"> TRICK: to get the default Skeleton WorldMatrix, get it from Bone[0] (ie "Bip01")</span>
00112 <span class="comment"> We cannot use the Default Pos/Rot of the skeleton model because of export bug (not exported...)</span>
00113 <span class="comment"> So, since Bip01 as no Local Rot (yes, its true, exporter report all Bip01 rots on Skeleton), </span>
00114 <span class="comment"> we are sure that Bip01 BindPos is the default Skeleton World Matrix.</span>
00115 <span class="comment"> */</span>
00116 CQuat rootInvBP= model->Bones[0].getBoneBase().InvBindPos.getRot();
00117
00118 <span class="comment">// If ctrl not enabled, take the LSRotation from the animation</span>
00119 <span class="keywordflow">if</span>(!<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a>)
00120 {
00121 currentLSRotation= <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrld0">getCurrentLSRotationFromBone</a>(model, bone);
00122 }
00123 <span class="keywordflow">else</span>
00124 {
00125 <span class="comment">// Get the wanted direction in LocalSkeleton Space. </span>
00126 CQuat currentLSDirection;
00127
00128 <span class="comment">// Get the current wanted WorldDirection into LocalSkeleton space (hence using current skeleton WorldMatrix).</span>
00129 CMatrix toLSSpace= model->getWorldMatrix();
00130 currentLSDirection= toLSSpace.getRot().conjugate() * <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_0">CurrentWorldDirection</a>;
00131
00132 <span class="comment">// Get the default WorldDirection into LocalSkeleton space (hence using default skeleton WorldMatrix).</span>
00133 CQuat defaultLSDirection= rootInvBP * <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_0">DefaultWorldDirection</a>;
00134
00135 <span class="comment">/* get the rotation to apply to the bone when it is in bind Pos. If this quat is identity, </span>
00136 <span class="comment"> then the bone will be in default (or bind) pos.</span>
00137 <span class="comment"> It is in essence the "rotation to apply to defaultDirection in LS space, in order to get </span>
00138 <span class="comment"> the wanted current direction in LS space".</span>
00139 <span class="comment"> The makeClosest() is here just to ensure that the resulting angle<Pi (for clamp direction later)</span>
00140 <span class="comment"> */</span>
00141 currentLSDirection.makeClosest(defaultLSDirection);
00142 currentLSRotation= currentLSDirection * defaultLSDirection.conjugate();
00143 }
00144
00145
00146 <span class="comment">// Clamp direction, and smooth direction changes.</span>
00147 <span class="comment">// ***********</span>
00148 <span class="comment">// if not enabled, then LSRotation comes from the animation => do not clamp</span>
00149 <span class="keywordflow">if</span>(<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a>)
00150 {
00151 <span class="comment">// to AngleAxis.</span>
00152 <a class="code" href="a02195.html">CAngleAxis</a> angleAxis= currentLSRotation.getAngleAxis();
00153 <span class="comment">// Clamp the angle</span>
00154 <a class="code" href="a05378.html#a374">clamp</a>(angleAxis.<a class="code" href="a02195.html#NLMISC_1_1CAngleAxiso0">Angle</a>, -MaxAngle, MaxAngle);
00155 <span class="comment">// back To Quat.</span>
00156 currentLSRotation.setAngleAxis(angleAxis);
00157 }
00158
00159 <span class="comment">// get the dt of the scene.</span>
00160 CScene *scene= model->getOwnerScene();
00161 <span class="keywordtype">float</span> sceneDt= scene->getEllapsedTime();
00162 <span class="keywordtype">float</span> maxDeltaAngle= <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_3">MaxAngularVelocity</a>*sceneDt;
00163 <span class="comment">// get the quat that change from LastRotation to CurrentRotation</span>
00164 CQuat rotMod= <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr2">_LastLSRotation</a>.conjugate() * currentLSRotation;
00165 <span class="comment">// compute how many rotation we are allowed to do.</span>
00166 <span class="keywordtype">float</span> rotModAngle= (<span class="keywordtype">float</span>)fabs(rotMod.getAngle());
00167 <span class="keywordtype">bool</span> rotSpeedClamped= <span class="keyword">false</span>;
00168 <span class="keywordflow">if</span>(rotModAngle)
00169 {
00170 <span class="keywordtype">float</span> factor= (<span class="keywordtype">float</span>)fabs(maxDeltaAngle) / rotModAngle;
00171 <span class="comment">// If cannot do all the rotation this frame</span>
00172 <span class="keywordflow">if</span>(factor<1)
00173 {
00174 <span class="comment">// then slerp between last and current rotation</span>
00175 currentLSRotation.makeClosest(_LastLSRotation);
00176 currentLSRotation= CQuat::slerp(_LastLSRotation, currentLSRotation, factor);
00177 rotSpeedClamped= <span class="keyword">true</span>;
00178 }
00179 }
00180
00181 <span class="comment">// if the rotation has not been clamped for speed consideration, and if !Enabed, it's mean we have ended </span>
00182 <span class="comment">// the transition => no more compute next time</span>
00183 <span class="keywordflow">if</span>(!<a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">Enabled</a> && !rotSpeedClamped)
00184 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr0">_EnableToDisableTransition</a>= <span class="keyword">false</span>;
00185
00186 <span class="comment">// bkup last rotation</span>
00187 <a class="code" href="a03468.html#NL3D_1_1CTargetAnimCtrlr2">_LastLSRotation</a>= currentLSRotation;
00188
00189 <span class="comment">// Apply the weighted Rotation to the bone</span>
00190 <span class="comment">// ***********</span>
00191 <span class="comment">// Get the bone Bind Pos in LocalSkeleton space (hence using Default Skeleton WorldMatrix)</span>
00192 CQuat boneBindPosInWorld= bone->getBoneBase().InvBindPos.getRot().conjugate();
00193 CQuat boneBindPosInLS= rootInvBP * boneBindPosInWorld;
00194 <span class="comment">// rotate it to match our wanted direction.</span>
00195 boneBindPosInLS= currentLSRotation * boneBindPosInLS;
00196
00197 <span class="comment">// get it in bone local space.</span>
00198 <span class="comment">// get the Bone Parent LocalSkeletonMatrix</span>
00199 CBone *boneParent= bone->getFatherId()==-1? NULL : &model->Bones[bone->getFatherId()];
00200 CQuat currentLocalQuat;
00201 <span class="keywordflow">if</span>(!boneParent)
00202 currentLocalQuat= boneBindPosInLS;
00203 <span class="keywordflow">else</span>
00204 {
00205 <span class="comment">// compute the rotation to apply, in local space</span>
00206 CQuat qp= boneParent->getLocalSkeletonMatrix().getRot();
00207 currentLocalQuat= qp.conjugate() * boneBindPosInLS;
00208 }
00209
00210 <span class="comment">// set the new LocalRotQuat</span>
00211 bone->setRotQuat(currentLocalQuat);
00212 <span class="comment">// and recompute the bone (but without AnimCtrl of course :) )</span>
00213 bone->compute(boneParent, model->getWorldMatrix(), NULL);
00214
00215 }
</pre></div> </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrld0" doxytag="NL3D::CTargetAnimCtrl::getCurrentLSRotationFromBone" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="a03296.html">CQuat</a> NL3D::CTargetAnimCtrl::getCurrentLSRotationFromBone </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="a03399.html">CSkeletonModel</a> * </td>
<td class="mdname" nowrap> <em>model</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap><a class="el" href="a02277.html">CBone</a> * </td>
<td class="mdname" nowrap> <em>bone</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [private]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="a06483.html#l00219">219</a> of file <a class="el" href="a06483.html">target_anim_ctrl.cpp</a>.
<p>
References <a class="el" href="a06394.html#l00098">NL3D::CSkeletonModel::Bones</a>, <a class="el" href="a06308.html#l00139">NLMISC::CQuatT< float >::conjugate()</a>, <a class="el" href="a05492.html#l00114">NL3D::CBone::getBoneBase()</a>, <a class="el" href="a05492.html#l00144">NL3D::CBone::getLocalSkeletonMatrix()</a>, <a class="el" href="a05972.html#l00353">NLMISC::CMatrix::getRot()</a>, <a class="el" href="a05492.html#l00060">NL3D::CBoneBase::InvBindPos</a>, and <a class="el" href="a03297.html#NLMISC_1_1CQuatTz2012_2">NLMISC::CQuatT< float >::makeClosest()</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00062">execute()</a>.
<p>
<div class="fragment"><pre>00220 {
00221 <span class="comment">// get the current rotation matrix (qmat) of this bone, in LS space</span>
00222 CQuat currentLSRot= bone->getLocalSkeletonMatrix().getRot();
00223
00224 <span class="comment">// get the default bindPos (qb) rotation of this bone, in LS space.</span>
00225 CQuat boneBindPosInWorld= bone->getBoneBase().InvBindPos.getRot().conjugate();
00226 CQuat rootInvBP= model->Bones[0].getBoneBase().InvBindPos.getRot();
00227 CQuat boneBindPosInLS= rootInvBP * boneBindPosInWorld;
00228
00229 <span class="comment">// The rotation (qrot) is computed such that qmat= qrot * qb</span>
00230 currentLSRot.makeClosest(boneBindPosInLS);
00231 <span class="keywordflow">return</span> currentLSRot * boneBindPosInLS.conjugate();
00232 }
</pre></div> </td>
</tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlr0" doxytag="NL3D::CTargetAnimCtrl::_EnableToDisableTransition" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlr0">NL3D::CTargetAnimCtrl::_EnableToDisableTransition</a><code> [private]</code>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00099">99</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlr1" doxytag="NL3D::CTargetAnimCtrl::_LastEnabled" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlr1">NL3D::CTargetAnimCtrl::_LastEnabled</a><code> [private]</code>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This tells that a Enable/Disable transition is in progress.
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00098">98</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlr2" doxytag="NL3D::CTargetAnimCtrl::_LastLSRotation" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="a03296.html">CQuat</a> <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlr2">NL3D::CTargetAnimCtrl::_LastLSRotation</a><code> [private]</code>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The last rotation computed (in LocalSkeleton Space). Used to smooth transition.
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00095">95</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlz1364_0" doxytag="NL3D::CTargetAnimCtrl::CurrentWorldDirection" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="a03296.html">CQuat</a> <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_0">NL3D::CTargetAnimCtrl::CurrentWorldDirection</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
For DirectionMode, the WorldRotation to apply to the bone. NB: modified in <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrla1">execute()</a> if TargetMode.
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00065">65</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlz1366_0" doxytag="NL3D::CTargetAnimCtrl::DefaultWorldDirection" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="a03296.html">CQuat</a> <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_0">NL3D::CTargetAnimCtrl::DefaultWorldDirection</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This give The World Orientation when the Mesh is in bind Pos (default to "LookBack").
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00075">75</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlz1366_1" doxytag="NL3D::CTargetAnimCtrl::Enabled" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_1">NL3D::CTargetAnimCtrl::Enabled</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
This enable or disable the ctrl. When disabled or enabled, the ctrl ensure that the movement does not "pop", respecting MaxAngularVelocity. Default to true.
<p>
Definition at line <a class="el" href="a06484.html#l00073">73</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlz1364_1" doxytag="NL3D::CTargetAnimCtrl::EyePos" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_1">NL3D::CTargetAnimCtrl::EyePos</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
For TargetMode only, the Pos of eyes relative to the bone controlled. Default to (0,0,0).
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00063">63</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlz1366_2" doxytag="NL3D::CTargetAnimCtrl::MaxAngle" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> float <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_2">NL3D::CTargetAnimCtrl::MaxAngle</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The Maximum angle of rotation that can be performed between the Default Direction and Current Direction. Default to Pi/3.
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00077">77</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlz1366_3" doxytag="NL3D::CTargetAnimCtrl::MaxAngularVelocity" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> float <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1366_3">NL3D::CTargetAnimCtrl::MaxAngularVelocity</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
The Maximum Angular Velocity the ctrl can perform. Default to 2*Pi per second.
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00079">79</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlo0" doxytag="NL3D::CTargetAnimCtrl::Mode" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlw3">TMode</a> <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlo0">NL3D::CTargetAnimCtrl::Mode</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Target controled or direction controled. Default to DirectionMode.
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00056">56</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<a class="anchor" name="NL3D_1_1CTargetAnimCtrlz1364_2" doxytag="NL3D::CTargetAnimCtrl::WorldTarget" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="a03128.html">CVector</a> <a class="el" href="a03468.html#NL3D_1_1CTargetAnimCtrlz1364_2">NL3D::CTargetAnimCtrl::WorldTarget</a>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
For TargetMode, the world Position of the target.
<p>
<p>
Definition at line <a class="el" href="a06484.html#l00061">61</a> of file <a class="el" href="a06484.html">target_anim_ctrl.h</a>.
<p>
Referenced by <a class="el" href="a06483.html#l00040">CTargetAnimCtrl()</a>, and <a class="el" href="a06483.html#l00062">execute()</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06484.html">target_anim_ctrl.h</a><li><a class="el" href="a06483.html">target_anim_ctrl.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:47:42 2004 for NeL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.6 </small></address>
</body>
</html>
|