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

Method InterpolateGlobalTransform

ogsr_engine/xrGame/PHShell.cpp:1106–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106void CPHShell::InterpolateGlobalTransform(Fmatrix* m)
1107{
1108 // if(!CPHObject::is_active()&&!CPHObject::NetInterpolation()) return;
1109
1110 ELEMENT_I i, e;
1111 i = elements.begin();
1112 e = elements.end();
1113 for (; i != e; ++i)
1114 (*i)->InterpolateGlobalTransform(&(*i)->mXFORM);
1115 m->set((*elements.begin())->mXFORM);
1116 m->mulB_43(m_object_in_root);
1117 mXFORM.set(*m);
1118 VERIFY2(_valid(*m), "not valide transform");
1119 CPhysicsShellHolder* ref_object = (*elements.begin())->PhysicsRefObject();
1120 if (ref_object && m_active_count < 0)
1121 {
1122 ref_object->processing_deactivate();
1123 m_active_count = 0;
1124 }
1125}
1126
1127void CPHShell::GetGlobalTransformDynamic(Fmatrix* m)
1128{

Callers 15

UpdateCLMethod · 0.45
UpdateCLMethod · 0.45
switch_to_freeMethod · 0.45
move_updateMethod · 0.45
UpdateMethod · 0.45
VisualUpdateMethod · 0.45
UpdateCLMethod · 0.45
UpdateRootMethod · 0.45
InitMethod · 0.45
IsInAreaMethod · 0.45
GetExitPositionMethod · 0.45

Calls 7

mulB_43Method · 0.80
_validFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
setMethod · 0.45
PhysicsRefObjectMethod · 0.45
processing_deactivateMethod · 0.45

Tested by 1

TestPassMethod · 0.36