Hello,
I have a variable named speed. I want to increase the value of speed exponentially. How can I do this?
Hello,
I have a variable named speed. I want to increase the value of speed exponentially. How can I do this?
If tou really mean exponentially, you need Mathf.Pow(f, p);
float speed = Mathf.Pow(speed, p);
var speed : int ; //or double or whatever
speed += (speed);
OR you can go old school programmatic method and use
speed = (speed + speed);
EDIT…
-=
*=
etc are operator and Assign