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

Method PHCaptureGetNearestElemTransform

ogsr_engine/xrGame/PHMovementControl.cpp:913–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913Fmatrix CPHMovementControl::PHCaptureGetNearestElemTransform(CPhysicsShellHolder* object)
914{
915 CPhysicsElement* ph_elem = object->m_pPhysicsShell->NearestToPoint(vPosition);
916
917 Fmatrix m;
918 ph_elem->GetGlobalTransformDynamic(&m);
919
920 return m;
921}
922
923IPhysicsElement* CPHMovementControl::IElement() const
924{

Callers

nothing calls this directly

Calls 2

NearestToPointMethod · 0.80

Tested by

no test coverage detected