Talk:GetScale - ObjectReference
Revision as of 01:57, 9 February 2015 by imported>Darkconsole (Created page with "== GetScale, SetScale == Interesting little tidbit I noticed with these functions, which made sense only after looking at the console version of this method. When you SetScal...")
GetScale, SetScale
Interesting little tidbit I noticed with these functions, which made sense only after looking at the console version of this method. When you SetScale(1.0) you may not get 1.0 back from GetScale(). It seems on actors the ActorBase height multiplier is getting used in SetScale(), with GetScale() thusly returning the modified value instead of what you set.
I was really confused over some behaviours all night, and it turned out to when I did scale = actor.GetScale() * actor.GetHeight() for the purpose of my maths, all was well.
--Darkconsole (talk) 2015-02-09T01:52:57 (EST)