tjheldna Posted March 16, 2014 Share Posted March 16, 2014 This is an optimisation to opening prefabs as I see it, you may not agree with me so do with this as you want. I'm just starting to get more picky now, as It's getting increasingly harder to find bugs =). When you open up a prefab using File->Load, the prefab in the world is where ever it was when you created it. i.e I save the model in the original scene at x = 30.0, y = 1.0, z = 23.0 If you open up the prefab file you created, the models will be positioned at that location above. I guess I would expect it all centered when I go to edit it at 0.0, 0.0, 0.0. Cheers! Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 16, 2014 Share Posted March 16, 2014 Yes there is bugs with prebabs : alignment and duplicate problems also. But like you said, less bugs, what is good Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Einlander Posted March 17, 2014 Share Posted March 17, 2014 That annoys me too. All the models packs I made I had to position them at 0,0,0 before I save a prefab. Don't get me started with using a csg as a shape mesh, they don't perfectly align when you do that. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 17, 2014 Share Posted March 17, 2014 Sometimes it can be useful to have the original position but in most cases it isn't it. An extra parameter for the Load command would suffice: Load("path", bool useOriginPosition) 1 Quote Link to comment Share on other sites More sharing options...
Einlander Posted March 17, 2014 Share Posted March 17, 2014 Or in the settings, or at save time it asks to zero the origin Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 11, 2015 Share Posted April 11, 2015 Sometimes it can be useful to have the original position but in most cases it isn't it. An extra parameter for the Load command would suffice: Load("path", bool useOriginPosition) I got that case , and i would need the prefab to instanciate at original world offset position instead of having the prefab centered at position 0,0,0 as it is today. The main use is for using different 3D tiles and their management by code. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
tjheldna Posted April 11, 2015 Author Share Posted April 11, 2015 You can load prefab like you can a world so open it up and position it that way. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 12, 2015 Share Posted April 12, 2015 I was talking about the offset we could need to keep. If i have in Blender a sphere model positionned at 10,10,10 I would want after importing it in LE3 ,if i place the model in the scene at 0,0,0 , to have the sphere still at 10,10,10 LE3 when importing a model recalculates the global center unfortunatelly.Having some option not not recalculate the object center could be usefull some times. Quote Stop toying and make games 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.