I'm using Marilou to simulate the movement of a hexapod. I'm using the standard hexapod provided by Marilou and enabled the auto motion on every component.
I'd like to measure the speed of the hexapod, while it is walking. Therefore I have the following code:
Code: Select all
corpsGeom = corps->QueryGeom("body0"); float xOld,xNew,y,z; // ignore y/z, only x direction corpsGeom->GetPosition(xOld,y,z); // do some movement here corpsGeom->GetPosition(xNew,y,z); float dist = xNew-xOld; //the distance
Is Marilou deterministic in general and I only have a wrong setup (maybe friction is not right, or something else?), or can Marilou be initialized with a random seed?