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

Question Two parallel box colliders Sliding - Unexpected behavior

Discussion in 'Physics for ECS' started by HazelMesh, Apr 3, 2022.

  1. HazelMesh


    Mar 3, 2022
    So there are two physics bodies, one is static while another is dynamic.
    On the dynamic body I added the "Limit DOF joint" from the sample, the dynamic body have all 3 rotation axes locked and Y position axis locked, and everything is working.

    The problem is when I translate towards static collider with the dynamic one, the dynamic one goes +/-90 degrees from the direction it was going (but with smaller speed).
    Both colliders axis aligned, and the player movements are always axis aligned, and both colliders have "Bevel radius" set to 0 , so I don't understand why it is happening , and how to prevent that.

    Here is how it looks.
    Also I tested it on regular rigidbody and this is not happening.