Jump to content
  • entries
    940
  • comments
    5,894
  • views
    864,002

The Left-Hand Rule


Josh

7,309 views

 Share

Leadwerks uses a left-handed coordinate system. This means that if you hold your left hand as shown below, your middle finger, index finger, and thumb will point in the directions of the X, Y, and Z axes, respectively.

 

blogentry-1-0-69344400-1444420060_thumb.jpg

 

Rotations use the left-handed rotation rule. To predict the direction of positive rotation, curl your fingers on your left hand and point your thumb in the direction of the rotational axis. Your fingers will curl in the direction of positive rotation along that axis.

 

blogentry-1-0-11080300-1444420069_thumb.jpg

 

This will help you remember how your rotation values affect objects in 3D space.

  • Upvote 1
 Share

5 Comments


Recommended Comments

Question, why did you/your team decide to use Y as up while other applications and engines use Z? Is it because Y is easier to remember as up because of all 2D Graphs? Just curious.

Link to comment

+Y = up is more commonly used in games. I find it a lot more intuitive as well, since z often means depth.

 

I kept the left-hand rule for rotation simply because it was easier to remember to use the same hand.

 

This is all in the documentation, but I was just using this and thought it was worth noting, and it would be interesting to see if everyone knew this already.

  • Upvote 2
Link to comment

That solves nothing and only introduces problems when people try to apply math concepts that are "handedness" dependent in Leadwerks as right handed systems are the default in all of math and physics unless explicitly stated otherwise.. Is there any good reason why you did it? +Y can be easily achieved in right handed systems as well, as you just rotate the system as a whole.

 

EDIT: Here Unity is left-handed too, I don't get why engine devs do this silly thing on purpose.

Link to comment

If there is a standard for games, it is the left-hand coordinate system, since this is what DirectX uses. I find it much more intuitive that up, right, and forward would all be positive directions.

Link to comment

about Y

if u look at the monitor it shows a plane with x,y , same a paper have.

the depth with z came later.

i think this left-handed system is perfect.

but it make sense to name the axis as people want via config.

Link to comment
Guest
Add a comment...

×   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.

×
×
  • Create New...