Jump to content

position vs absolutePosition


Art Vandelay
 Share

Recommended Posts

The position is the object's position in its own coordinate system. If you simply place an object in a scene, it's position and absolute position will technically be the same.

The problem starts when you add  a parent to the object. If the parent's x is 1, and the object's x is 0, it's position's x will be 0, but absolute position will be 1.

You cannot change the absolute position. It is a read-only vector (you can Set it, but not change it). that's why it doesn't work in the drag & drop example.

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...