- Home /
Missing Mathf Term ?
I'm creating an equation in my game to determine the targeting speed of a ship. I need to use the inverse hyperbolic sine (sinh^-1, or asinh) but the Mathf class doesn't seem to have it. Do any of you know of a way I can get this, or find a way around? If you want a better idea what it's going to be used for here is the equation:
*targetingSpeed = 40000/(scanResolution * asinh(enemySigniture)^2);*
Comment
Best Answer
Answer by Lockstep · Feb 16, 2014 at 09:50 AM
asinhX = ln(X + sqrt(X^2 + 1))
acoshX = ln(X + sqrt(X^2 - 1))
ln is the natural logarithm and sqrt is the square root.
And what does X stand for? Perfect answer otherwise, by the way.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
calculating distance between points returns Nan... 1 Answer
Help Understanding Script 2 Answers