Moving a camera using a parent TransformNode by modifying it's world matrix

Hello!
Can anyone tell me why can’t I move the FreeCamera in this example? The camera has a parent TransformNode. I’m modifying it’s world matrix, but the camera is still.
Thanks a lot!

It is really unsafe to change matrices manually with parenting in babylon as we are recomputing them and use some caching and such. I am not sure there would be a safe hack to do so :frowning: maybe you could create your own type of nodes to overwrite the computations.

Thanks @sebavan !

It’s too high level for me :smiley:

And is there a way to move the camera in world space modifying it’s worldMatrix (didn’t work for me) or should I stick to it’s `viewMatrix’?

The camera mostly use the viewMatrix so better to modify there.

2 Likes