Game Development Reference

In-Depth Information

Hence,

cos(
p
)=
ba
/
bc

Using this information, term
ac
can supply the heading value:

[
ac
=(
ba
/
bc
)sin(
h
)]

Hence,

sin(
h
)=
ac
*
bc

ba

Therefore,

ac
*
bc

ba

h
= asin

Finally, we can use the fact that
bb
= cos(
p
)cos(
b
) to find the value of

bank. Substituting
ba
/
bc
for cos(
p
), we have

[
bb
=(
ba
/
bc
)cos(
b
)]

Hence,

cos(
b
)=
bb
*
bc

ba

Therefore,

bb
*
bc

ba

b
= acos

Now to apply the data to your model you simply need to create a dialog

box that will map the elements in the mocap file to the segments in your

character. By reorientating the data with respect to frame zero for your

model the alignment can be achieved. This is often a trial and error task.

You may find that the data give a bow-legged character, in which case

Search Nedrilad ::

Custom Search