Search the Community
Showing results for tags 'world position'.
-
Hi there, I'm working on a little project where I do a lot of parenting and swapping parents/children around, etc.. Is there an easy way to preserve a child's world position when changing its parent? I'm really new to Babylon so I don't always know what's available to me. If this doesn't exist how would I go about it? Inverse the parent's world matrix and apply to it its child? If someone has an example handy I'd appreciate Thanks!
-
Hi, I am not sure if this is a bug. I am trying to increment both the position of the world camera and want to move all their displayed object update: function () { this.game.world.y = 100; console.log(this.game.world.y);},The position of the world is changed but the world did not move update: function () { this.game.camera.y += 1; console.log(this.game.camera.y);},This time, the camera only results to zero. I have tried moving the camera with Phaser 1.1.3 and it works. I am curious why this approach is not working for 1.2. Thank you