- Home /
Question by
ina · Dec 31, 2011 at 01:25 PM ·
transformlocalscalerelativedimensionsabsolute
Specifying a game object by height or width or length instead of localScale
Is it possible to specify the dimensions of a gameObject by an absolute metric coordinate, such as 50m or something like that, instead of localScale (relative)?
Comment
Answer by ina · Dec 31, 2011 at 02:08 PM
Transform.lossyScale seems to be the only way to connect localScale to global coordinates - caveat is that if you rotate your object, this will be inaccurate... maybe some projection via EulerAngles to get the revised components