I am working on an aframe project where 3D objects are loaded from .obj files. However the raycaster wouldn't work with the imported objects. I suspect the reason is that unlike built-in geometries, these imported objects don't have proper collider set up. Is it possible to add mesh colliders to a generic 3D object, like in Unity? Or is it for some other possible reasons that the raycaster won't work on these objects?
Meshes do work with the raycaster so if you have issues 2 quick solutions:
Also make sure there is no object between the origin of the raycaster and the mesh! It's a silly problem but sometimes we forget that we add/remove object by making them transparent and... they prevent the raycaster to interact with the object behind.
PS: if you want a collider in addition to the raycaster there is the aabb-collider component.