| 5169 | |
| 5170 | |
| 5171 | int CScriptObjectEntity::AwakeEnvironment(IFunctionHandler *pH) |
| 5172 | { |
| 5173 | pe_params_bbox pbb; |
| 5174 | pe_action_awake aa; |
| 5175 | IPhysicalEntity **ppEnts; |
| 5176 | Vec3 vMin,vMax,vDelta; |
| 5177 | int i,nEnts; |
| 5178 | |
| 5179 | m_pEntity->GetBBox(vMin,vMax); |
| 5180 | vDelta.x=vDelta.y=vDelta.z = m_pISystem->GetIPhysicalWorld()->GetPhysVars()->maxContactGap*4; |
| 5181 | nEnts = m_pISystem->GetIPhysicalWorld()->GetEntitiesInBox(vMin-vDelta,vMax+vDelta, ppEnts, ent_sleeping_rigid|ent_living|ent_independent); |
| 5182 | for(i=0;i<nEnts;i++) |
| 5183 | ppEnts[i]->Action(&aa); |
| 5184 | |
| 5185 | return pH->EndFunction(); |
| 5186 | } |
| 5187 | |
| 5188 | int CScriptObjectEntity::NoExplosionCollision(IFunctionHandler *pH) |
| 5189 | { |
nothing calls this directly
no test coverage detected