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. Dismiss Notice

Need help ASAP please

Discussion in 'Prefabs' started by Dayanibrar9012, Dec 12, 2020.

  1. Dayanibrar9012

    Dayanibrar9012

    Joined:
    Aug 31, 2020
    Posts:
    3
    So i am making a mobile unity game . I attached the mesh collider and the rigidbody to my game object with a player collision script but even after no error and applying the colliders my player goes through the Obstacles. and it does not scan the collider im confused please anyone you can explain and help
    Here is the screenshots TheFloatingcity - Level01 - iOS - Unity 2020.1.4f1 Personal_ _DX11_ 12_12_2020 3_01_25 PM.png . TheFloatingcity - Level01 - iOS - Unity 2020.1.4f1 Personal_ _DX11_ 12_12_2020 2_57_18 PM.png TheFloatingcity - Microsoft Visual Studio 12_12_2020 2_56_53 PM.png
     
  2. AriyaSD

    AriyaSD

    Joined:
    Nov 2, 2019
    Posts:
    24
    At least one of the objects you want to collide with each other need to have a non-Kinematic Rigidbody attached.
     
    rc82 likes this.
  3. Dayanibrar9012

    Dayanibrar9012

    Joined:
    Aug 31, 2020
    Posts:
    3
    it did not worked man :-[
     
  4. ZackCee

    ZackCee

    Joined:
    Oct 21, 2020
    Posts:
    10
    Does your obstacle have collider?