And its look angle set the center the mesh appears
| The Bone Mesh Demo | 395 | |
|---|---|---|
![]() |
|
|
Figure 13.8
This Viking spearman mesh has 26 bones and 1 animation set.
| 396 |
|
n |
|
|---|
void game_update(float deltaTime)
{
mesh->Transform();
mesh->Animate( deltaTime, &mesh->getMatrix() ); }void game_render3d()
{
effect->setTechnique("Ambient");
effect->setProjectionMatrix( camera->getProjMatrix() ); effect->setViewMatrix( camera->getViewMatrix() );
effect->setWorldMatrix( mesh->getMatrix() );
mesh->Render( effect );
}
| 398 |
|
n |
|
|---|
References
Ditchburn, Keith; http://www.toymaker.info.



