| 899 | } |
| 900 | |
| 901 | Fvector 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 | |
| 913 | Fmatrix CPHMovementControl::PHCaptureGetNearestElemTransform(CPhysicsShellHolder* object) |
| 914 | { |
no test coverage detected