Node getBoundingInfo worldMatrix uncorrect?

What kind of oparate will change the scene’s renderId?
In my project,i find that i call the node.getBoundingInfo().But the worldMatrix is uncorrect,i saw the code,it use the matrixCache.And the node renderId is not same to scene.renderID.I should call the node.getWorldMatrix to force recompute the worldMatrix.

scene render id mostly changes per render target and frames.

In your case I would suggest to manually call mesh.computeWorldMatrix(true) before getting the matrix.

2 Likes

Thanks for your reply! :smile: