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

Method PHCaptureGetNearestElemPos

ogsr_engine/xrGame/PHMovementControl.cpp:901–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901Fvector CPHMovementControl::PHCaptureGetNearestElemPos(const CPhysicsShellHolder* object)
902{
903 R_ASSERT3((object->m_pPhysicsShell != NULL), "NO Phisics Shell for object ", *object->cName());
904
905 CPhysicsElement* ph_elem = object->m_pPhysicsShell->NearestToPoint(vPosition);
906
907 Fvector v;
908 ph_elem->GetGlobalPositionDynamic(&v);
909
910 return v;
911}
912
913Fmatrix CPHMovementControl::PHCaptureGetNearestElemTransform(CPhysicsShellHolder* object)
914{

Callers 6

check_completionMethod · 0.80
setup_substatesMethod · 0.80
setup_substatesMethod · 0.80
check_completionMethod · 0.80

Calls 3

NearestToPointMethod · 0.80
cNameMethod · 0.45

Tested by

no test coverage detected