Search Unity

SphereCastAll and rigidbodies

Discussion in 'Physics' started by Eldirfar, Feb 26, 2016.

  1. Eldirfar

    Eldirfar

    Joined:
    Feb 9, 2014
    Posts:
    65
    I'm casting SphereCastAll in direction of red line and I have sometimes strange issue that this cast misses some colliders like in screen below. Green line show SphereCastAll origin and closest hit with different rigidbody to not collides with own colliders. SphereCastAll radius is half of car width.
    Sometimes SphereCastAll misses all colliders from car in front and hit next car.

    Rigidbody is moving by WheelColliders

    Any one have any idea?
    Zrzut ekranu 2016-02-26 o 14.17.13.png