/////////////////////////////////////////////////////////////////////
| 1112 | |
| 1113 | ////////////////////////////////////////////////////////////////////////// |
| 1114 | IEntity* CEntitySystem::GetEntityFromPhysics(IPhysicalEntity* pPhysEntity) const |
| 1115 | { |
| 1116 | assert(pPhysEntity); |
| 1117 | CEntity* pEntity = NULL; |
| 1118 | if (pPhysEntity) |
| 1119 | pEntity = (CEntity*)pPhysEntity->GetForeignData(PHYS_FOREIGN_ID_ENTITY); |
| 1120 | return pEntity; |
| 1121 | |
| 1122 | //CPhysicalProxy *pPhysProxy = (CPhysicalProxy*)pPhysEntity->GetForeignData(PHYS_FOREIGN_ID_ENTITY); |
| 1123 | //if (pPhysProxy) |
| 1124 | //return pPhysProxy->GetEntity(); |
| 1125 | //return NULL; |
| 1126 | } |
| 1127 | |
| 1128 | ////////////////////////////////////////////////////////////////////// |
| 1129 | int CEntitySystem::GetPhysicalEntitiesInBox(const Vec3& origin, float radius, IPhysicalEntity**& pList, int physFlags) const |
no test coverage detected