MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Update

Method Update

ogsr_engine/xrGame/IKLimbsController.cpp:333–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331 */
332}
333void 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}

Callers 1

LimbUpdateMethod · 0.45

Calls 8

update_blendFunction · 0.85
VisualMethod · 0.80
UpdateTracksMethod · 0.80
testMethod · 0.45
updateMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected