| 331 | */ |
| 332 | } |
| 333 | void CIKLimbsController::Update() |
| 334 | { |
| 335 | #ifdef DEBUG |
| 336 | if (ph_dbg_draw_mask1.test(phDbgIKOff)) |
| 337 | return; |
| 338 | #endif |
| 339 | IKinematicsAnimated* skeleton_animated = m_object->Visual()->dcast_PKinematicsAnimated(); |
| 340 | VERIFY(skeleton_animated); |
| 341 | |
| 342 | skeleton_animated->UpdateTracks(); |
| 343 | update_blend(m_legs_blend); |
| 344 | |
| 345 | _pose_extrapolation.update(m_object->XFORM()); |
| 346 | xr_vector<CIKLimb>::iterator i = _bone_chains.begin(), e = _bone_chains.end(); |
| 347 | for (; e != i; ++i) |
| 348 | LimbUpdate(*i); |
| 349 | |
| 350 | /* |
| 351 | Fmatrix predict; |
| 352 | _pose_extrapolation.extrapolate( predict, Device.fTimeGlobal ); |
| 353 | |
| 354 | |
| 355 | |
| 356 | |
| 357 | DBG_DrawMatrix( m_object->XFORM(), 1 ); |
| 358 | DBG_DrawMatrix( predict, 1 ); |
| 359 | |
| 360 | _pose_extrapolation.extrapolate( predict, Device.fTimeGlobal + 1 ); |
| 361 | DBG_DrawMatrix( predict, 1 ); |
| 362 | */ |
| 363 | } |
no test coverage detected