Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

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 Moderator

    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 Moderator

    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 :)