Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WheelCollider height changes based upon Z position

Discussion in '5.2 Beta' started by Pelican_7, Jul 8, 2015.

  1. Pelican_7


    Nov 25, 2014
    Hi all,

    I am having an new issue with the WheelCollider component in 5.2.0b1.

    A WheelCollider moves up and down depending on the local Z position of its GameObject. This causes our vehicle's back wheels to be at a different height than its front wheels as the GameObjects' Z position is different. Has anyone else come across this issue? Very strange.

    You can see the issue easily by:
    1. Creating a game object and adding a WheelCollider component
    2. Move the z position (transform) of the game object
    3. You'll see the WheelCollider move up and down as the z position is changed. This can be done in the editor as the gizmo will show you.

    Can anyone confirm whether this is a bug or a change to the way WheelColliders in 5.2 work? The docs do not specify that anything in WheelCollider has changed. I have filed it as a bug for now.

    Thanks in advance,