- Home /
Can't reproduce some physics sequence
Hello, problem is that, I'm using couple forces to change way of moving my object. After that I need to set position, rotate etc to the same as the begining and start again. After "restart" of moving something weird is happening because my object is moving a little different than 1rst one.
Is hard to explain for me so i decided to create some art in one of topic in community board, here you can find: http://forum.unity3d.com/threads/194158-Physics-and-repeating-some-events-forces?do=editpost&postid=1318259
There's also short movie: http://sdrv.ms/14puLEb
Any idea, what's wrong I'm doing?
Answer by Jtbentley_v2 · Aug 09, 2013 at 01:39 AM
If you're using the built in physics solution, you're probably doing nothing wrong. PhysX is not physically accurate, it's merely an aproximation. Essentially, that means it's actually got a slight factor of randomisation.
If you reset everything in a fixed update loop, and trigger everything identically, you might have slightly better luck but by it's nature, it isn't designed to be a simulation (a simulation physics solution would produce identical results under identical circumstances).
The way around this is to build your own physics, which for a rocket game like this probably wouldn't be too hard (but still much harder than using the built in solutions)
Agree, but how to reset physics time to zero and start count after press start rocket? After Reload the scene every flyes problems are the same. This means 1st is the same always. Second like the second after restart scene etc. It' looks like the rocket is gaining some physics-noise after every flyes.
Your answer
Follow this Question
Related Questions
Slow motion for Physics game 2 Answers
"Fast" fixed timestep 1 Answer
ForceMode.VelocityChange vs. simply adding to .velocity 0 Answers
Clothes goes mad with a near-zero time scale? 0 Answers
Why does rigidbody.velocity.x return crazy float values? 1 Answer