Sorry, your code really makes no sense to me. I have no idea what you're trying to do.
The up and down keys change the mass of the sphere? What is the purpose of the pivot? What is a vz limit?
Seriously, I'd love to help but I have no idea what you're trying to do!
The up and down keys change the mass of the sphere? What is the purpose of the pivot? What is a vz limit?
Seriously, I'd love to help but I have no idea what you're trying to do!