Unter Posted December 8, 2009 Share Posted December 8, 2009 I apologize for the naive questions, I understand that there is a wiki, but to me there is not all clear. If a man has the desire and time, please reply to some after them. How can I get information about the coordinates (position, rotation, scale) of the object in the scene? How they can be divided into three coordinate axes X, Y and Z.? Quote characters artist animator environment artist vehicles artist vehicles script writer Participated in ready game projects: Russian http://4x4game.ru/ English http://www.1cpublishing.eu/game/4x4-hummer/overview Link to comment Share on other sites More sharing options...
Niosop Posted December 8, 2009 Share Posted December 8, 2009 I apologize for the naive questions, I understand that there is a wiki, but to me there is not all clear. If a man has the desire and time, please reply to some after them. How can I get information about the coordinates (position, rotation, scale) of the object in the scene? How they can be divided into three coordinate axes X, Y and Z.? local coords = model:GetPosition() coords.x coords.y coords.z Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
Josh Posted December 8, 2009 Share Posted December 8, 2009 Local position: model.position.x Global position: model.mat.tx Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
TylerH Posted December 9, 2009 Share Posted December 9, 2009 Just curious: Local position is global position if it has no parent? Else local position is relative parent? Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Josh Posted December 9, 2009 Share Posted December 9, 2009 Yes. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Unter Posted December 9, 2009 Author Share Posted December 9, 2009 Whether through a script to load *. sbx scene? Thanks. Quote characters artist animator environment artist vehicles artist vehicles script writer Participated in ready game projects: Russian http://4x4game.ru/ English http://www.1cpublishing.eu/game/4x4-hummer/overview Link to comment Share on other sites More sharing options...
Josh Posted December 10, 2009 Share Posted December 10, 2009 LoadScene? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Unter Posted December 10, 2009 Author Share Posted December 10, 2009 Yes analogy LoadScene. If I understand correctly, then the LUA is: scene=LoadScene("scenes\myscene.sbx") Ie *. sbx loaded as well as any other object? Quote characters artist animator environment artist vehicles artist vehicles script writer Participated in ready game projects: Russian http://4x4game.ru/ English http://www.1cpublishing.eu/game/4x4-hummer/overview 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.