Timeline for Handling Origin/Anchor Points in a Scene Graph
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 28, 2013 at 15:21 | vote | accept | Huhwha | ||
| Jan 23, 2013 at 20:24 | comment | added | Huhwha | Thanks for the very detailed answer, but I have to apologize for not giving enough information in my question. I'm working in 2D, and the main issue that I was running into was that I couldn't get children to honor their parent's origin. E.g., if I had a parent node with it's origin at {10, 10} the rotations etc. would work properly but any children that were added would be registered at the parent's {0, 0} point. I fixed it by adding a translation to the parent's origin (e.g. translate(parent.origin.x, parent.origin.y). If you incorporate the above in your answer I'll be happy to accept it. | |
| Jan 22, 2013 at 22:58 | history | answered | Tom Dalling | CC BY-SA 3.0 |