Question by
LeonmFF · Aug 02, 2018 at 04:39 AM ·
physics2druntimespeedtranslationphysics settings
Change Physics2D.maxTranslationSpeed at runtime does not work
Hello.
I'm still using Unity 5.3, so I'm not quite up to date.
I'm trying the following:
Physics2D.maxTranslationSpeed = 1f;
It compiles with no error what so ever, but the value of my maxTranslationSpeed remains unchanged. I don't know to to do to update this value corretly.
When I change the player's material bounciness, I need to disable and enable again his collider, otherwise the change also doesn't take effect.
Is someone can help, please, I already looked around and coudn't find anything related. Thanks o/
Comment