- Joined
- Apr 1, 2008
- Messages
- 2,064
- Reaction score
- 507
- Points
- 113
if you mean by applying [Numpad+] rsp. [Numpad+], I can only see a difference in acceleration, not in speed.
But based on your code, that's to be expected.
You are assuming that the number of calls (per second) to clbkPostStep is equal for both situations....It is not!
If you want a predictable acceleration for your wheelspin member you have to take the sim-time to calculate that (either simt, simdt or mjd).
As a demonstration, just try to gain speed [Num+] at accelerated time (x10) and you'll see a huge difference!
But based on your code, that's to be expected.
You are assuming that the number of calls (per second) to clbkPostStep is equal for both situations....It is not!
If you want a predictable acceleration for your wheelspin member you have to take the sim-time to calculate that (either simt, simdt or mjd).
As a demonstration, just try to gain speed [Num+] at accelerated time (x10) and you'll see a huge difference!