Ho do I get scene.ray_cast to work? I want to detect an object from 2 points. The start of the raycast is the camera.location, but for end of the raycast what vector do I have to use? (Location of the empty doesn't work).

I know there is a problem with the direction of the raycast, but I don't know how to do it.

Red line is the ray from the camera to the empty:

red line are the ray from camera to empty


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.