x to the y power
exp() ?
where do I put the x and the y?
I don't know what purpose that serves. You can do exponents using the "^" symbol, like this: x^y
Yup, x^y. Exp is the inverse of ln (logarithm with base e). See http://en.wikipedia.org/wiki/Exponential_function
thanks guys!
this was getting a little cumbersome:
sqrt((Sprite3[Physics].VelocityX*Sprite3[Physics].VelocityX)-
(Sprite3[Physics].VelocityY*Sprite3[Physics].VelocityY))
Or use distance(0, 0, Sprite3[Physics].VelocityX, Sprite3[Physics].VelocityY)
Develop games in your browser. Powerful, performant & highly capable.
I was looking for a distance function. can't believe I didn't see that the first time. at least now I now how to do exponents, too
thanks again ash
Hehe, you ask one question, you learn many things!