I have two characters I’ve added to my scene. I’ve placed them in to different positions on the ground plane (using “Basic Physics” example scene from Needle). They each have capsule collider and animator components. However, when I export them, in the WebXR scene they’re both at the origin (0,0,0). Even when I set their position in TypeScript in start() like I usually do in Unity or in awake(), they still don’t go to the global position I specify with
this.gameObject.position.setX(1);
this.gameObject.position.setZ(0);
However, if I put the same TypeScript code in update() in the same script it works.
Primitive gameObjects already in the “Basic Physics” scene start where placed in the scene view window.
Any reason for this behavior that you can think of? Should I put the position update code in another Lifecycle method?
by user 581381221087445033