Skip to content

Syncing child transforms produces jittery results, which causes further issues #383

Open
@AnthonyTornetta

Description

@AnthonyTornetta

When moving at high speeds, the difference is quite apparent as seen here:
Peek 2023-06-12 22-16
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): Peek 2023-06-13 13-43
You can see the left pair behave properly and the right parent/child pair react incorrectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Integrationvery bevy specificD-DifficultNeeds strong technical background, domain knowledge, or impacts are high, needs testing...P-LowS-not-startedWork has not startedquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions