Quantcast
Channel: Answers for "How do I set the global scale of an object in a transform hierachy?"
Browsing latest articles
Browse All 4 View Live

Answer by ikeo

It was much easier than I was making it out to be. The COLLADA matrices make complete sense if you decompose them and set the localPosition, localScale, and localRotation as follows:Vector3 x = new...

View Article



Answer by Alex 17

Maybe it will be helpful:function GetParentScale(): Vector3 { var sf: Vector3 = Vector3.one; var parentTransform: Transform = null; if (thisTransform.parent) parentTransform = thisTransform.parent;...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images