Difference between revisions of "Talk:GetPositionX - ObjectReference"
Jump to navigation
Jump to search
Talk:GetPositionX - ObjectReference (edit)
Revision as of 09:24, 14 January 2019
, 09:24, 14 January 2019→Global and Local positions: Removed
imported>Rasikko m (global and local positions) |
imported>Rasikko (→Global and Local positions: Removed) |
||
Line 18: | Line 18: | ||
Use this to get the exact X coordinate for the cell. To be used only for exterior cells. Takes negative values into account. [[User:Lisselli|Lisselli]] ([[User talk:Lisselli|talk]]) 2017-10-27T12:22:34 (EDT) | Use this to get the exact X coordinate for the cell. To be used only for exterior cells. Takes negative values into account. [[User:Lisselli|Lisselli]] ([[User talk:Lisselli|talk]]) 2017-10-27T12:22:34 (EDT) | ||
: Math.Floor would give an inaccurate coordinate. If Y is -14.2, Floor will put it to -15. To properly handle positive and negatives in the case of coordinates, simply casting as int will do and no need to check if the position is negative or positive. --[[User:Rasikko|Rasikko]] ([[User talk:Rasikko|talk]]) 2018-01-10T12:39:49 (EST) | : Math.Floor would give an inaccurate coordinate. If Y is -14.2, Floor will put it to -15. To properly handle positive and negatives in the case of coordinates, simply casting as int will do and no need to check if the position is negative or positive. --[[User:Rasikko|Rasikko]] ([[User talk:Rasikko|talk]]) 2018-01-10T12:39:49 (EST) | ||