Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Car with WheelColliders moves to the right

Discussion in 'Physics' started by Antti202, Feb 1, 2015.

  1. Antti202

    Antti202

    Joined:
    May 20, 2014
    Posts:
    5
    Hello!

    I created 4 WheelColliders, I am adding motorTorque to the 2 rear wheels.
    When I test it, the car moves slightly to the right. What could cause such behavior ?
     
  2. yant

    yant

    Unity Technologies

    Joined:
    Jul 24, 2013
    Posts:
    595
    5.0 beta? Cars are expected to be aligned along the Z axis (forward). That way, when positive motorTorque is applied, the car would travel forward heading Z. One way to get something you see would be to align your car along X, but the actual movement will still be along Z thus perceived as a movement right\left.

    A.
     
  3. Antti202

    Antti202

    Joined:
    May 20, 2014
    Posts:
    5
    Unity 4.6.1, the car itself is moving in the right direction, towards Z axis, but the rotation Y is changing and the car is turning slightly, WheelCollider's wheel sizes and everything is identical. Can't figure it out.