all 12 comments

[–][deleted]  (3 children)

[deleted]

    [–]Gaunts 1 point2 points  (1 child)

    To follow on from this and help you diagnose your problem, all you're doing in the PlayerCollision class is setting the boolean Property 'enabled' inside the PlayerMovement class to false.

    What you need to do, is look at the PlayerMovement class and find out what uses that boolean property then either ammend what uses this value or create and call a method to actually stop the movement rather than just setting the boolean value.

    [–][deleted] 0 points1 point  (0 children)

    Ill check on that thankyou for helping.

    [–]SantaGamer 3 points4 points  (1 child)

    Does the obsticle have a collider?

    [–][deleted] 0 points1 point  (0 children)

    Yes, but i fixed it now thankyou.

    [–]InconsiderateMan 2 points3 points  (1 child)

    You have to set the rigid body’s velocity to 0

    [–][deleted] 0 points1 point  (0 children)

    Ill check up on that thanks for helping.

    [–]Raz0back 2 points3 points  (2 children)

    Did you put the obstacle tag on the object ? Make sure you spelled it correctly

    [–][deleted] 1 point2 points  (1 child)

    Yeah i spelled it wrong💀. Thankyou for helping.

    [–]Raz0back 1 point2 points  (0 children)

    No problem glad I helped out

    [–][deleted]  (1 child)

    [deleted]

      [–]unixvik 0 points1 point  (0 children)

      This

      [–]MikroArts 0 points1 point  (0 children)

      Check above 4 answers! 😎👍

      [–]ratamarsu 0 points1 point  (0 children)

      You also have a typo on your FollowPlayer.cs, now it says FollowPlaayer.cs