It’s as if I never changed it even though I did, the behaviour and inspector checkbox stay at whatever they were set to from the editor. It’s not that the script isn’t working though, outputting the value of useGravity on my Rigidbody to the console shows that it has supposedly changed, but the player does not reflect that. This affects other properties like isKinematic aswell.
What is going on? I couldn’t find anyone else struggling this. No idea how to debug this since debugging shows everything is working as expected. I read the Rigidbody API page, it doesn’t say anything about useGravity being readonly and there is no setter method either.