Hey guys, am needing a little help in implementing a speed up slow down feature in my program.
Currently I can alter the speed of the update by setting/changing physicSystem.Integrate(dt). Which is fine. However doing so means that my objects react differently to forces - which is understandable.
To try and explain the situation:
Example 1: If I have a ball 10 meters off the ground and apply an arbitrary force of 100 in its forward facing z direction - the ball will start to move forward whilst being effected by gravity at 9.81m/s downwards. And therefore eventually land say 10 meters in the z direction from its starting point.
If I then alter dt to be 1/10th of dt in example 1 and apply the same 100 force to the ball from the same position. The ball indeed runs in what looks to be 'slow motion' However the ball does not land in the same position, it lands a long way shorter.
Ok so I think I need to update any forces I add manually during running to take into account the adjusted dt? so that if dt is half the speed add double the force? Does that sound right?
**** Once I get this going - if I wanted to have 1 ball run in normal speed and 1 in slow motion at the same time….would I need 2 physics systems? Or can I use 1? I can't think of how to manage that in JigLibX, have tried fiddling around in Integrate and also TransformRate and UpdateAllPositions with no luck. ANy advise much appreciated.
Thanks in advance.