How to get Angle of Attack value?

Discussion in 'Content Creation' started by mehio, Jul 20, 2022.

  1. mehio

    mehio
    Expand Collapse

    Joined:
    Jun 20, 2018
    Messages:
    152
    How do i get the value of the Angle of Attack for a certain triangle or node? I want to write a lua script where if the angle of attack is higher than X then do something, else if Angle of Attack lower than Y then do something else.

    I cant find the angle of attack in the electrics section or the streams section of the Beamng wiki.
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    I don't think you can access this kind of stuff from LUA, I believe it is handled on the game engine side. You can only calculate it somehow.
     
  3. mehio

    mehio
    Expand Collapse

    Joined:
    Jun 20, 2018
    Messages:
    152
    Alright so Angle of Attack (α) is the angle between the relative Air and Fuselage reference line (FRL). There is an app in the game which shows you the relative air and then you need the pitch angle basically. Is this doable?
     
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Probably, I'm not an expert so I can't tell
     
    • Like Like x 1
  5. mehio

    mehio
    Expand Collapse

    Joined:
    Jun 20, 2018
    Messages:
    152
    I was able to get the pitch, roll and yaw values. But i still need the angle of attack. You can see the angle of attack values in the debug menu of the vehicle but i cant seem to find where these values are coming from.
     
  6. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    They come directly from game engine rendering, you can't access them in a mod
     
    • Like Like x 1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice