2.5D Platformer One Way Platform Issue

I’m making a 2.5D Run N Gun platformer and I’m having trouble creating a one way platform. I tried using a Quad since it only has collision on one side, and that works perfectly for my player (using character controller) . However, my game has projectiles which also need to be one way. When the projectiles go through the bottom of the platform, OnCollisionEnter is called causing them to be destroyed. Is there any way to prevent this from happening? Or detect if the projectile hit the bottom of a Quad?

Notes:

  1. I tried using This Solution, but it isn’t working.
  2. I can not disable the entire collider to allow a certain object to pass through the bottom. This would make any enemy standing on the platform fall through it.
  3. My projectiles have rigidbodies with continuous dynamic collision detection.

Thanks for the help!

If I understand your problem correctly, you can check the Y value of the projectiles velocity inside your OnCollisionEnter. If it is travelling upwards when the collision event occurred , it implies that it hit the quad from below.

I solved the problem using the solution arcifus proposed. I also checked to make sure the mesh we are colliding with is a quad. Example (Untested, I solved this yesterday at work and don’t have the file):

void OnCollisionEnter (Collision c)
{
MeshCollider otherCollider = c.gameObject.GetComponent<MeshRenderer>();
if(otherCollider != null && otherCollider.sharedMesh.name == "Quad")
 {
        return;
 }

//destroy the projectile and whatever else
}

Thanks for the help!