-
Notifications
You must be signed in to change notification settings - Fork 4
Mysterious Events without Reason?
A Wiki page for strange things that happen in the simulation, but the reason for these events are not evident.
Perhaps this can lead to our own FAQ.
- [KP] When running RepelTest, I noticed that the sphere that doing the repelling has a habit of drifting away
Type of simulation: Race
Initial Positions:
SPH1: (0, 0.7, 0)
SPH2: (0, 0.2, 0)
Code/Function
SPH1: Some random piece of code that I decided to put into Repelled.c, but will probably not leave in there.
int k;
for(k = 0; k < 12; k++){
printf("%f\n", myState[k]);
}
SPH2: RepelTest.c, which calls upon FaceOtherSphere (which consequently calls upon Vfunc).
Output from the viewpoint of SPH1: After the first time printf is called, when the attitude in the y-direction of SPH1 is .999981, the attitude of SPH1 remains a constant 1.
What's strange?
SPH2, which is supposed to only face the other sphere and repel, starts to drift, even before it zaps.
At 96% (before a zap), its position is (-.03, .21, -.02).
Can anyone explain why it is drifting?
Note that no set velocity or set position functions for SPH2, to my belief, are called.
On a side note, the for loop was called at least twice within the first second. I thought that the function was supposed to be called only once per second?