Temechon Posted November 8, 2014 Share Posted November 8, 2014 Hello guys, I don't understand this : http://playground.babylonjs.com/#1ZNVAT If the box is in 0, everything is fine. But when the box position is different than 0, my axis are screwed... Why ? Thank you for your help. Cheers, Quote Link to comment Share on other sites More sharing options...
Dad72 Posted November 8, 2014 Share Posted November 8, 2014 Oh, I see, it's because of the camera which always points to the coordinate 0,0,0. So when you put a position 2 on your cube, it is higher than the camera looking from below. Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 8, 2014 Author Share Posted November 8, 2014 I don't think it's a camera problem. Actually, my axis should always be in the center of the box... Quote Link to comment Share on other sites More sharing options...
Dad72 Posted November 8, 2014 Share Posted November 8, 2014 A Yes, you have reasons. there is a bug with TransformCoordinates() or computeWorldMatrix(). I think that this is multiply by 2. because if you put your 0.5, axis that found on the edge of your cube that is 1.0. Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 9, 2014 Author Share Posted November 9, 2014 Ok, I found my mistake : http://playground.babylonjs.com/#1ZNVAT#1 Thanks anyway Quote Link to comment Share on other sites More sharing options...
joshcamas Posted November 9, 2014 Share Posted November 9, 2014 Is this fancy line thing going to be added to Babylon alpha? Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 10, 2014 Author Share Posted November 10, 2014 It's not planned I created this to better understand the concept of local coordinates (and to play with some physics too ) Quote Link to comment Share on other sites More sharing options...
joshcamas Posted November 11, 2014 Share Posted November 11, 2014 Well it should be :3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 11, 2014 Share Posted November 11, 2014 PR are always welcome Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.