Search Unity

[Cloth] vertices property lags a frame behind

Discussion in 'Physics' started by AndrewRH, Aug 7, 2019.

  1. AndrewRH

    AndrewRH

    Joined:
    Jan 24, 2012
    Posts:
    2,806
    We're sampling cloth vertex positions so we can attach geometry to cloth vertices on skinned characters.

    This is working well, but the cloth vertices seem to be a frame behind, so the attached geometry lags behind the rendered cloth.

    We have tried doing the attachment code in LateUpdate() OnRenderObject() and even created a coroutine that yields for WaitForNewFrame(), but we still have this problem.

    This is with Unity 2018.4.4 on Windows.

    Any ideas?