How to reparent Objects at Runtime?

How can we reparent a WLE object in js?

You can do this.object.parent = other object
But this will change the world position