I wanted to make a script that reacts when you touch certain objects in the scene but I don’t want to put mesh colliders on the objects just for this purpose.
Is there a way to do a sort of raycast hit and return the name of the mesh object that is in line even if it has no collider component?
Yes, the only trouble was that a few of the objects were skinned meshes and it doesn’t seem like the colision mesh gets animated with the skinned mesh.
why not add a mesh collider as well?
it could be put in its own layer/tag so that only the rays you want will test against it…
this is quiet common in FPS games, you need ‘Actor Collision Mesh’, which will guide gameplay and smooth out steps and floors, then usually you have ‘Projectile Collision’ for bullets, which is where you want accurate poly for poly collision
regarding animating collision mesh with the character… instead, just create a collection of spheres to generally pad out the animated objects volume (similar to ragdoll)