MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / GetEntityFromPhysics

Method GetEntityFromPhysics

Code/CryEngine/CryEntitySystem/EntitySystem.cpp:1114–1126  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1112
1113//////////////////////////////////////////////////////////////////////////
1114IEntity* 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//////////////////////////////////////////////////////////////////////
1129int CEntitySystem::GetPhysicalEntitiesInBox(const Vec3& origin, float radius, IPhysicalEntity**& pList, int physFlags) const

Callers 15

FilterMethod · 0.80
CheckVisibilityMethod · 0.80
GetSurfaceTypeMethod · 0.80
UpdateRaycastQueryMethod · 0.80
UpdateEntitiesAroundMethod · 0.80
OnRayCastDataReceivedMethod · 0.80
OnPostUpdateMethod · 0.80
OnCollisionMethod · 0.80

Calls 1

GetForeignDataMethod · 0.45

Tested by

no test coverage detected