I been working through the last module in the Unity 2D course and tried to add a little bounce effect in the Die() function. The problem I’m having is the bounce doesn’t reset to 0 after reseting the scene or game until I move the player. Couldn’t find much useful info on this, hoping you guys have an idea of what I’m doing wrong. Thanks in advance
I found out how to solve your issue, quite an interesting bug. The physics materials aren’t read every simulation step, meaning they won’t change until you reassign them, it’s actually kinda hilarious because this is one of those cases where you can write this without getting green squiggly lines:
Add that line right after you change the properties of your material to make the physics behave correctly, this has been an issue since before 2013 and apparently, Unity won’t be solving this anytime soon.