Jump to content

Global Flags


Shard
 Share

Recommended Posts

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

simpleSigPNG.png

 

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

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)

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

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?

simpleSigPNG.png

 

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

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!

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...