I just discovered "geometrical" is not a word
commited
commit
217f909254dfc8a2c5640c980cb6ff731fedaa6c
... | ... | @@ -1,4 +1,4 @@ |
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 most cases this is enough, but when the object's center of mass *isn't the same as its geometrical position*, and you want to locate it (or locate something in it) geometrically, just "getting its position" won't cut it. |
|
1 | Normally, when you get the position of an object, you actually get the position of the object's *center of mass*. In most cases this is enough, but when the object's center of mass *isn't the same as its geometric position*, and you want to locate it (or locate something in it) geometricly, just "getting its position" won't cut it. |
|
2 | 2 | |
3 | 3 | [[/uploads/center of mass opaque.png]] |
4 | 4 | |
... | ... | @@ -6,6 +6,6 @@ The trick is to take the vector returned by [[Get Position]] and **offset it by |
6 | 6 | |
7 | 7 | [[/uploads/geometrical position opaque.png]] |
8 | 8 | |
9 |
Almost similarly, to set the geometrical position of the object, set the actual position of the object to the desired position subtracted by the offset. |
|
9 |
By extension, to set the geometric position of the object, set the actual position of the object to the desired position subtracted by the offset. |
|
10 | 10 | |
11 | 11 | [[/uploads/set geometrical position opaque.png]] |
... | ... | \ No newline at end of file |