Whenever I try to take the sin of my crafts Angle of attack, it returns a random value that jumps around between -1 and 1. Even at a standstill.
Same with sideslip. Does anyone know a workaround or solution?

Tags
Vizzy

2 Comments

  • Log in to leave a comment
  • Profile image

    That makes sense. I assumed that the sin function was in degrees by default. Granted, there is no indication of this or otherwise that I am aware of.

    1.7 years ago
  • Profile image

    That's because the trig functions (sin cos tan, etc.) all expect inputs in the form of radians. You should use the 'deg2rad' operator (found as a dropdown choice in the '[abs] of' operator). That will multiply the value you give by pi/180, which is how you convert from degrees (360 degrees in a circle), to the standard way angles are handled in math, which is radians (2pi radians in a circle).

    1.7 years ago

No Upvotes

Log in in to upvote this post.