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

Method GetCapturePosition

ogsr_engine/xrGame/PHCapture.cpp:292–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292Fvector CPHCapture::GetCapturePosition()
293{
294 Fvector pos;
295 CObject* object = smart_cast<CObject*>(m_character->PhysicsRefObject());
296 pos.set(m_capture_bone->mTransform.c);
297 object->XFORM().transform_tiny(pos);
298 CActor* A = smart_cast<CActor*>(m_character->PhysicsRefObject());
299 if (A)
300 pos.mad(pos, A->Direction(), .5f);
301 return pos;
302}

Callers

nothing calls this directly

Calls 5

transform_tinyMethod · 0.80
DirectionMethod · 0.80
PhysicsRefObjectMethod · 0.45
setMethod · 0.45
madMethod · 0.45

Tested by

no test coverage detected