Finding a World Coordinate Relative to a Vehicle's Location

Discussion in 'Programming' started by EcoNadder77, Jan 2, 2021.

  1. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    I'm probably missing something, but aren't you basically looking for node positions? Node positions are local to the vehicle reference system, so you can do vehicle_pos + node_pos to get what you want (from what I understand at least)
     
  2. EcoNadder77

    EcoNadder77
    Expand Collapse

    Joined:
    May 29, 2017
    Messages:
    1,150
    I tried doing that at one point, but the resulting position seemed to drift around within a foot or so of the actual node depending on the vehicle's movement and orientation. Perhaps I made a silly error on my end. I can try to record this happening.
     
    • 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