Search Issue Tracker

Fixed in 5.5.0

Votes

4

Found in

5.1.0f2

Issue ID

699565

Regression

Yes

TerrainCollider doesn't detect collision with CapsuleCollider on time and causes capsule with rigidbody to bounce

Physics

-

Steps to reproduce:

1. Open attached project
2. Open scene "Assets/Test"
3. Double click on "Capsules" game object to focus on it
4. Notice that bellow capsules terrain is rough and uneven.
5. Run scene
6. Notice that capsules fail to detect collision on time and start to bounce (collisionbug.gif)

Note: Collision is only detected when bottom horizontal circle of collider crosses terrain collider (collisionDetected.gif). Decreasing "Default Contact Offset" (0.01 to 0.0001) seems to work for some capsules (defaultContactOffset.gif). If terrain is smooth then this bug doesn't occur.

Comments (3)

  1. Zergling103

    Dec 01, 2015 19:24

    Yeah, adding a sphere in the middle of the capsule that is the same radius works like a charm.

  2. maxxa05

    Sep 30, 2015 15:27

    Still there in 5.2.1. I hacked a fix by adding a sphere collider identical to the bottom of the sphere.

  3. edcx

    Jul 06, 2015 07:26

    I also have this kind of problem which started to occur after upgrading from 5.0.1 to 5.1.1. Capsule collider couldn't detect collision with terrain in time and starts to bounce.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.