initial draft (must add set part next)
commited
commit
134342c98ba8a6b651837bb48171b1ed90b80c9f
... | ... | @@ -0,0 +1,7 @@ |
1 | Normally, when you get/set the position of an object, you actually get/set the position of the object's *center of mass*. In many cases this is enough, but when the object's center of mass *isn't exactly its geometrical position*, and you want to locate it (or locate something in it) geometrically, just "getting its position" won't cut it. |
|
2 | ||
3 | [[/uploads/center of mass.png]] |
|
4 | ||
5 | The trick to solve this is to take the vector reported by [[Get Position]] and **offset it by half the total size of of the object**. With total size, I refer to the minimum and maximum vectors of the object, added together. |
|
6 | ||
7 | [[/uploads/geometrical position.png]] |