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

Function dInternalStepIsland

3rd_party/Src/ode/ode/src/step.cpp:984–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982//****************************************************************************
983
984void dInternalStepIsland (dxWorld *world, dxBody * const *body, int nb,
985 dxJoint **joint, int nj, dReal stepsize)
986{
987# ifndef COMPARE_METHODS
988 dInternalStepIsland_x2 (world,body,nb,joint,nj,stepsize);
989# endif
990
991# ifdef COMPARE_METHODS
992 int i;
993
994 // save body state
995 dxBody *state = (dxBody*) ALLOCA (nb*sizeof(dxBody));
996 for (i=0; i<nb; i++) memcpy (state+i,body[i],sizeof(dxBody));
997
998 // take slow step
999 comparator.reset();
1000 dInternalStepIsland_x1 (world,body,nb,joint,nj,stepsize);
1001 comparator.end();
1002
1003 // restore state
1004 for (i=0; i<nb; i++) memcpy (body[i],state+i,sizeof(dxBody));
1005
1006 // take fast step
1007 dInternalStepIsland_x2 (world,body,nb,joint,nj,stepsize);
1008 comparator.end();
1009
1010 //comparator.dump();
1011 //_exit (1);
1012# endif
1013}

Callers 1

processIslandsFastFunction · 0.85

Calls 4

dInternalStepIsland_x2Function · 0.85
dInternalStepIsland_x1Function · 0.85
resetMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected