Question about Linecast / Raycast

Hi,

Maybe you guys can help me out.

At the moment i have a project which involves a ball, with a corresponding collider that rolls over a plane. Sometimes i want to do a raycast or a linecast to see if there are objects in it’s way.

The problem i’m having is that when the ball is already colliding and lying still against an object with a collider, it doesn’t hit that object in the Raycast anymore.

Maybe this is default behaviour, i don’t know. How can i solve this, so the colliding is object is included in the Raycast?

Thanks in advance.

Resolved. The Linecast is working.

If you’ve resolved it, perhaps you might want to share the resolution to help others who have the same problem?