rigidBody.raycastFirst and Mesh collider problem

If I add a plane to the scene, and use box collision, app.systems.rigidbody.raycastFirst works.

If I change the collision type to mesh ( in order to make the collision just use the plane geometry ), the raycastFirst doesn’t work.

Are you adding a mesh asset to the collision component?

You can’t use the mesh collider with a plane type model component, you need an actual model asset to supply to the mesh collision component.

A good solution here might be that, if Collision is applied to any object ( mesh, or built in primitive ), Mesh is selected as a type, and no mesh is then chosen ( seems to be the default behaviour ), then the actual mesh of the object, or of the primitive, is used ).