- Home /
Mesh collider to make one way colliders.
Hello, I am making an endless runner game where platforms are randomly created and a runner runs on them. I want the runner to only collide with the upper side of the platforms and pass through the rest sides(left and right). I was told that mesh colliders will work but I dont know how to use them. Can anyone point me in the right direction please? Thanks in advance
Answer by Loius · Jul 02, 2014 at 08:49 PM
Just use a plane. You can only collide with a plane if you're moving towards its surface normal.
^
Lay the plane flat (on X/Z) and point it up (visible side pointing along +Y) and it should be close to what you're expecting.
If you have issues with side collision with that set up, you can disable your player's collider while they're moving upwards and enable it once they are moving downwards and not intersecting anything.
Your answer
![](https://koobas.hobune.stream/wayback/20220613153028im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Meshes with multpile texture maps--is it possible? 3 Answers
What is the term for moving a mesh with the corresponding bone? 1 Answer
Convex property of Colliders refer to Convex Set in Linear Mathematics? 1 Answer
Constant border width in shader, ignore view distance 0 Answers
Mesh position incorrect.... 1 Answer