Trail lags 1 frame behind with pivot

I would like to add to my question asked here: Trail lags 1 frame behind. In my games I actually have a pivot for the translates and I didn’t realize this simplification without the pivot would change the problem. So I made a new playground (https://www.babylonjs-playground.com/#ALW8PF#4) and I hope someone can help me figure out what I need to do so the trail doesn’t detach even if I have a pivot. Thank you in advance :slight_smile:

You should compute the world matrices in reverse order, first pivot then cube:

https://www.babylonjs-playground.com/#ALW8PF#5

1 Like

Thank you so much!