Car world position wrong

Discussion in 'Car Models | Physics' started by andrea_serafini, Apr 1, 2020.

  1. andrea_serafini

    andrea_serafini New Member

    Joined:
    Mar 31, 2020
    Messages:
    15
    Likes Received:
    0
    Hi, I was wondering if someone can explain me why if I use these two methods:
    coor_l = ac.getCarState(<ID>, acsys.CS.WorldPosition, acsys.WHEELS.FL)
    coor_r = ac.getCarState(<ID>, acsys.CS.WorldPosition, acsys.WHEELS.FR)

    I get the same result on both coor_l and coor_r, shouldn't they be different (Front left tyre position and Front right tyre position)?
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    xw, yw, zw = ac.getCarState(0, acsys.CS.WorldPosition)

    x,y,z = ac.getCarState(ac.getFocusedCar(),acsys.CS.TyreContactPoint,acsys.WHEELS.FR)

    0 is your car, other number would be for other cars on track
    ac.getFocusedCar() is - you guessed it already - the car the camera is on
     
  3. andrea_serafini

    andrea_serafini New Member

    Joined:
    Mar 31, 2020
    Messages:
    15
    Likes Received:
    0
: #ac #mods
  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