Pyhsics raycast UV is 0,0 always

Hello all,
I have a standard cube with a material on it, which has a texture assigned.
Raycast hit uv coords are always zero.
Any idea?
Help would be much appreciated!

I assume by uv coords you are referring to RaycastHit.textureCoord. If something doesn’t seem to working quite right always check docs for functions you are using. The docs for textureCoord Unity - Scripting API: RaycastHit.textureCoord clearly states (twice):

Does your cube have a mesh collider? Raycast hit textureCoord is feature for very specific usecases. In general cases raycast interacts with colliders and don’t know anything about visuals (mesh collider is somewhat an exception), also the shape of colliders don’t have to match the shape of visuals in which case there would be no logical mapping between raycast hit and uv coordinates.

Hello,
thanks a lot for answering. You are right, I should have read the documentation again. I had a mesh collider attached, but with Convex ckecked on (doc states it should be unchecked).

Cheers