Transform broken in 5.5.6/5.6.0? (works in 5.5.5)

Hi, it seems working with translate() does not work as in previous versions.

The level should be centered in viewport: Babylon.js Playground

It seems that forcing the world matrix to be recomputed before calling translate() fixes the issue for a workaround (line 77). It might be related to a recent change made to when the world matrix is recomputed. CC @Deltakosh :slight_smile:

@carolhmj could you have a look ? I wonder if it is related to the last fix of the optim ?

This is highly possible.

And I would say this is expected as the changes are happening within the same frame

1 Like

Setting AbstractMesh.scaling does not mark the object as dirty as TransformNode.scaling would do.

The solution is to call rock.markAsDirty();.

This looks like a bug to me.

I am not sure why abstract mesh would prevent the dirty flag to be set. @Deltakosh any good reason the override the TransformNode scaling with one which does not flag as dirty ?

This is TOTALLY a miss!

1 Like

Fix abstractMesh scaling overloads by deltakosh · Pull Request #12550 · BabylonJS/Babylon.js (github.com)

3 Likes

Hey BJS team, thank you for your work. I am happy with version 5.8.0 which ships with the fix.