Raycst a specific collider

Hi

Is it possible in dots to raycast a specific collider to see if that object intersects?

The gameobject physics have a collider.RayCast function but i can’t find any dots

Thanks!

You should look in the Unity Physics samples but it involves you getting the colliderworld and then something like this.

if (collisionWorld.CastRay(RayInput, ref RaycastHits))

You would also have to arrange the collision filters correctly, and there might be a problem where if the physics shapes are overlapping the CastRay will return all the hits no matter the filter and you might have to identify the specific object with a tag or something(I don’t know if thats changed or not yet).