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

Method StepTouch

ogsr_engine/xrGame/PHWorld.cpp:304–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void CPHWorld::StepTouch()
305{
306 PH_OBJECT_I i_object;
307 for (i_object = m_objects.begin(); m_objects.end() != i_object;)
308 {
309 CPHObject* obj = (*i_object);
310 obj->Collide();
311
312 ++i_object;
313 }
314
315 for (i_object = m_objects.begin(); m_objects.end() != i_object;)
316 {
317 CPHObject* obj = (*i_object);
318 ++i_object;
319 obj->Island().Enable();
320 }
321 for (i_object = m_objects.begin(); m_objects.end() != i_object;)
322 {
323 CPHObject* obj = (*i_object);
324 ++i_object;
325 obj->IslandReinit();
326 obj->spatial_move();
327 }
328 dJointGroupEmpty(ContactGroup);
329 ContactFeedBacks.empty();
330 ContactEffectors.empty();
331}
332
333u32 CPHWorld::CalcNumSteps(u32 dTime)
334{

Callers 3

DeactivateMethod · 0.80
ActivateMethod · 0.80
UpdateRestrictionTypeMethod · 0.80

Calls 8

dJointGroupEmptyFunction · 0.85
IslandReinitMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
CollideMethod · 0.45
EnableMethod · 0.45
spatial_moveMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected