Question by
GontyWasHere · May 09, 2020 at 07:39 PM ·
movementdeactivate
How to Deactivate Movement on Collision
So, I am making a platformer game that has spikes, and I want to make it so when the character touches the spike you lose the ability to move the character, and the z-axis gets unfrozen, giving the character the ability to freely roll around. Any help would be nice, as I am very new to coding and Unity itself.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612233757im_/https://answers.unity.com/themes/thub/images/avi.jpg)