Custom colliders?

Is there a type of collider that when you add it, will take the shape of whatever it is added to? I am using the Lerpz 3D platformer tutorial, and Lerpz keeps falling through the platforms -.-

Mesh collider.

When I try to use the mesh collider on the platforms, Lerpz still falls through.

That’s cause I’m guessing he has a rigidbody attached to him.

You need a rigidbody in order to have collisions at all.

–Eric

Actually I fixed it…

Rigidbodies and mesh colliders don’t work too well together. Furthermore, I’ve used a character controller without a rigidbody quite a lot and gotten collisions…

Those are two separate things. A rigidbody on its own only controls how an object behaves with respect to physics forces. An object that has only a rigidbody and no collider won’t interact with any other objects. You can still add forces through scripts, but that’s it.

Anyway, an object with a rigidbody and a (non-mesh) collider works with mesh colliders just fine.

A character controller is a specialized case (and technically it doesn’t have collisions as far as OnCollisionEnter etc. goes, instead it uses OnControllerColliderHit). Outside of character controllers, you need objects to have rigidbodies in order to have collisions.

–Eric

I was referring to a rigidbody with a mesh collider attached.

I was talking about character controllers because that’s what is used on moving Lerpz around and his collisions.