GetChangeInY
From NWN Lexicon
Contents |
[edit] GetChangeInY(float, float)
Convenience function that calculates the change in the Y axis to the target
float GetChangeInY( float fDistance, float fAngle );
[edit] Parameters
fDistance
Distance to target
fAngle
Direction to target
[edit] Description
This is a convenience function that returns the product of fDistance*sin(fAngle) as a float. This number would than be used to calculate the amount to needed to change the Y-axis of the current location in order to reach the target location. This function would normally be used with GetChangeInX.
Calls
float Sin(float fAngle)
[edit] Version
1.62
[edit] See Also
functions: |
author: Michael Nork, editor: Jasperre, additional contributor(s): Jasperre, Sky