Syncing child transforms produces jittery results, which causes further issues #383
Labels
A-Integration
very bevy specific
D-Difficult
Needs strong technical background, domain knowledge, or impacts are high, needs testing...
P-Low
question
Further information is requested
S-not-started
Work has not started
When moving at high speeds, the difference is quite apparent as seen here:
The non parent-child relationship is on the left & the weird parent/child pair is on the right.
The camera follows the buggy child in the right pair, which is why the left pair keeps going up as the right pair slows down and the child eventually phases through the parent.
In this example, the top cube is traveling 1m/s slower than the bottom cube.
I assume the error is located somewhere in
writeback_rigid_bodies
. Maybe something wrong with the parent transform being a frame out of sync?Code for the example in the gif: https://gist.github.com/AnthonyTornetta/2a6a4573126071c961eabe3c95aca247
Update:
After more testing, this is also apparent at low speeds. Even with it only moving 2m/s, the jittering is noticeable & they interact poorly with each other.
Video at low speed (2m/s) (ignore my jittery recording software):
You can see the left pair behave properly and the right parent/child pair react incorrectly.
The text was updated successfully, but these errors were encountered: