Shard Posted May 27, 2010 Share Posted May 27, 2010 Could someone please explain global flags and what they are meant to do? The wiki says nothing about them. Ex. Get/Set Rotation Get/Set Position Quote Programmer/Engineer/Student www.reikumar.com 2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM C++ - Visual Studio Express - Dark GDK - Leadwerks SDK Link to comment Share on other sites More sharing options...
AndyGFX Posted May 27, 2010 Share Posted May 27, 2010 int Global 0 = local space , 1 = global space http://www.leadwerks.com/wiki/index.php?title=Entities#PositionEntity Quote [HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64 [sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx Link to comment Share on other sites More sharing options...
Pixel Perfect Posted May 27, 2010 Share Posted May 27, 2010 As Andy says, so local is measured relative to the objects origin (0,0,0) where as global is measured releative to the scene's origin (0,0,0) Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
Shard Posted May 27, 2010 Author Share Posted May 27, 2010 int Global 0 = local space , 1 = global space http://www.leadwerks.com/wiki/index.php?title=Entities#PositionEntity Well I figured as much As Andy says, so local is measured relative to the objects origin (0,0,0) where as global is measured releative to the scene's origin (0,0,0) What about when parenting? And rotating? And moving? How does that work? Quote Programmer/Engineer/Student www.reikumar.com 2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM C++ - Visual Studio Express - Dark GDK - Leadwerks SDK Link to comment Share on other sites More sharing options...
Pixel Perfect Posted May 27, 2010 Share Posted May 27, 2010 What about when parenting? And rotating? And moving? How does that work? According to the wiki in the case of RotateEntity: If the entity does not have a parent, the global and local space are the same. When using MoveEntity I believe all movement is in local space but I don't think I've ever set the flag to 1 to test that. With EntityParent I'm not entirely sure unless the global setting dictates it's parented to the entity at the top of the parent child hierarchy of the entity you are parenting it too. I'd suggest experimenting a little to deduce the effect for yourself! Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
Josh Posted May 27, 2010 Share Posted May 27, 2010 http://www.leadwerks.com/wiki/index.php?title=TFormPoint 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...
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.