reddozen Posted November 26, 2013 Share Posted November 26, 2013 SceneLoader.ImportMeshmapZone[0].position.x the x, y, and z positions for all my items are all 0. Is there any way to get their relative position within my scene? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 26, 2013 Share Posted November 26, 2013 If you call LoadScene, are the positions defined? Quote Link to comment Share on other sites More sharing options...
reddozen Posted November 26, 2013 Author Share Posted November 26, 2013 I'm not sure what that is. I haven't seen any examples of that. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 26, 2013 Share Posted November 26, 2013 So that's mean your objects are located at 0,0,0 Quote Link to comment Share on other sites More sharing options...
reddozen Posted November 26, 2013 Author Share Posted November 26, 2013 That can't be the case though because when you look at the scene, they're all over the map based on their position from when they were exported from the blinder scene. How can they be at 0,0,0 but, not be at 0,0,0? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 26, 2013 Share Posted November 26, 2013 It can be the case if vertices are not centered to 0,0,0 (The position can be 0,0,0 but every vertex are already stored with the transformation) Quote Link to comment Share on other sites More sharing options...
reddozen Posted November 26, 2013 Author Share Posted November 26, 2013 This makes since, but then is there a way to get the relative position of the object based on the transform? 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.