- Home /
What dose 'lossyScale' actually means?
The document is too simple and too naive to make people understand!!
Some parts of computer graphics and game math are just complicated, and very math heavy. Generally, if something has a 0 or 1-line explanation, that's a sign. If you know the concept, 1 line is all you need to use it in Unity. But if you don't, they would have to write an entire chapter.
The description of lossyScale is pretty good. The keys parts are rotated scaled children and a 3x3 matrix. So if you aren't sure what a matrix has to do with scale and rotation, you know the math is currently a little much for you.
Answer by whydoidoit · May 15, 2013 at 08:10 AM
The scale is lossy because it's not accurate due to the need to multiply out the scales of all of the parents. It's only wrong if on or more of those parents have different x,y,z scales and are rotated - if their scales are all uniform then it is indeed correct.
So parent has scale: 0.1,0.5,0.4 - lossyScale will be close but not necessarily perfectly accurate depending on rotations.
Parent has scale 0.1,0.1,0.1 - lossyScale is accurate.
Thanks very much. So in my opinion 'lossyScale' attempts match actual world scale, but because of uncertain scale and rotate of parent, so it is not actual world scale. Then I wonder what purpose this property beyond that make some people confused.
It might be useful to know approximately how big something is in world scale. Have to say its uses are limited but I guess it's there so you have consistency between being about to get the position of the object in world space and the rotation in world space.
Your answer
Follow this Question
Related Questions
Trying to delay movement of a GameObject 1 Answer
Problems using NGUI for in-game options sliders 0 Answers
Dynamic Scrollable List with NGUI 2 Answers
How to move a gameObject without affecting its childrens' positions? 2 Answers
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers