I am using a character controller as my main character in my game and I would like to be able to randomly change his velocity based on how much he falls. I can detect his velocity be calling charactercontroller.velocity, but when I try to set this equal to a variable, unity tells me that charactercontroller.velocity is read only. Can I only get this function if I use a rigidbody as my character? Thanks.
↧