applyImpulse(), No reproducible results

Hello all,
I have been trying out a physics simulation with upbge. I am not able to get the same results all the time given the conditions are unchanged. Check the file I have attached. The force acts weirdly at different positions while going down the chute. Is there anything I am missing? Should I add anything?

orientation_test.blend (1003.7 KB)

If you look at your chute model from the top view while it is rotated appropriately, you may notice that the mesh is not symmetrical:

image

Object physics are based on mesh pieces, so if a mesh is not symmetrical, it is going to act unpredictably.

Hey,
I have changed the design an made the mesh symmetrical (first image). Now the object goes through the chute. I am not sure if it is due to wrong direction of impulse (Please correct me if I took wrong vector direction). Could you help me rectify the issue of object going through it.

Second Image. I want to flip the object with force. Just once.

oreintation_impulse_no hole.blend (1005.7 KB)

so - bullet physics uses floating point math

at the end of every float is a small bit of chaos.

https://en.wikipedia.org/wiki/Floating-point_error_mitigation#:~:text=Floating-point%20error%20mitigation%20is,best%2C%20can%20only%20be%20managed.

1 Like