# computeWorldMatrix(true) - giving wrong positions when updating outside of render loop

**URL:** <https://forum.babylonjs.com/t/computeworldmatrix-true-giving-wrong-positions-when-updating-outside-of-render-loop/10489>\
**Category:** Questions\
**Created:** [May 2, 2020, 10:31am UTC](https://forum.babylonjs.com/t/computeworldmatrix-true-giving-wrong-positions-when-updating-outside-of-render-loop/10489 "2020-05-02T10:31:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![semirel](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/semirel/32/5871_2.png) [@semirel](https://forum.babylonjs.com/u/semirel)\
**Post date:** [May 2, 2020, 10:31am UTC](https://forum.babylonjs.com/t/computeworldmatrix-true-giving-wrong-positions-when-updating-outside-of-render-loop/10489/1 "2020-05-02T10:31:58Z")

</div>

Is anybody aware of issues with `computeWorldMatrix(true)`? I set a plane’s absolutePosition in a loop (and it can’t run in the render loop, since there are a lot operations taking place) and it seems that computeWorldMatrix (true) doesn’t really reflect the changes to the position. This is evident when projecting. Is there anything other than computeWorldMatri I need to use for outside of render loop?

I saw several links online throughout the years mentioning issues with this.

Before projecting

```auto
label._CoT.computeWorldMatrix(true);
        label.labelPlane.computeWorldMatrix(true);
        mesh.computeWorldMatrix(true);
        camera.computeWorldMatrix(true);

```

I make these call to make sure the world matrix is recomputed.

```auto
let screenProjectedCorners = cornersWorld.map(cornerWorld => {
            return BABYLON.Vector3.Project(
                cornerWorld,
                BABYLON.Matrix.IdentityReadOnly,
                scene.getTransformMatrix(),
                camera.viewport.toGlobal(
                    engine.getRenderWidth(),
                    engine.getRenderHeight(),
                )
            );
        });

```

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [May 2, 2020, 11:06am UTC](https://forum.babylonjs.com/t/computeworldmatrix-true-giving-wrong-positions-when-updating-outside-of-render-loop/10489/2 "2020-05-02T11:06:38Z")

</div>

Would you produce a simple playground, reflecting your code, that sets a plane’s absolutePosition in a loop with a computeWorldMatrix(true) outside the render loop and (using the console perhaps) show that the matrix is giving the wrong positions? It would help greatly in finding the issue.

---

<div class="post-metadata">

**Author:** ![semirel](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/semirel/32/5871_2.png) [@semirel](https://forum.babylonjs.com/u/semirel)\
**Post date:** [May 7, 2020, 8:00am UTC](https://forum.babylonjs.com/t/computeworldmatrix-true-giving-wrong-positions-when-updating-outside-of-render-loop/10489/3 "2020-05-07T08:00:29Z")

</div>

False alarm. Very sloppy on my end John. I will make sure that I don’t send posts without a playground again.

It was on a private project and reproducing it was somewhat difficult.

It was a different bug causing it - my sincerest apologies
