Root script initialize and rigidbody teleport


#1

Hello, I have a global script for the Root entity.
On the initialize function I teleport a box with dynamic rigidbody to 0, 10, 0.
But on the update function, when showing on the console the getPosition().y, it first shows 10 correctly,
then the next two calls shows the y setted on the editor (1.5)
after this it shows the correctly again the y position.

Script: https://playcanvas.com/editor/code/616504?tabs=19676718
Launch: https://launch.playcanvas.com/752325?debug=true
(see the browser console to view the values)

Is this a bug?

Thanks