Search Unity

Car physics issues

Discussion in 'Developer Preview Archive' started by joshua-jebadurai, Jan 1, 2012.

  1. joshua-jebadurai

    joshua-jebadurai

    Joined:
    Jul 3, 2009
    Posts:
    14
    I made a small car physics test using wheel colliders which works fine inside the editor but when I export it to flash it acts all weird.

    1. The physics time goes insane.
    2. The vehicle automatically goes left even when just pressed forward.

    These issues doesn't happen in a web player or standalone.

    Flash version
    Web version

    Just press the forward key and you'll notice.
     

    Attached Files:

  2. Alex Mat

    Alex Mat

    Joined:
    May 14, 2010
    Posts:
    177
    I had more or less a similar issue (along with some lags), on a homemade wheelcollider because of the skidmarks. Comment out the skidmark line in your script and give it a try.
     
  3. joshua-jebadurai

    joshua-jebadurai

    Joined:
    Jul 3, 2009
    Posts:
    14
    I just disabled the skid marks and checked. It didn't work though, the time is really fast and the car just goes to the left for no reason. :(
     
  4. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    you guys putting physics in fixedupdate?
     
  5. joshua-jebadurai

    joshua-jebadurai

    Joined:
    Jul 3, 2009
    Posts:
    14
    Yes. That's one the first things I tried. :) funny part is, it works fine in other builds. I mean I understand it's a BETA and this is suppose to happen.
     
  6. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Send unity a repro and attach project :) seems like it would be a bug if you're using fixedupdate :)