1
$\begingroup$

Here I have results from Intersection Line Plane (green dot) and Ray Cast (red dot). White dots represent a Line.

I don't understand why does ray casting tell me there is no hit?

enter image description here

$\endgroup$

1 Answer 1

3
$\begingroup$

The Ray Cast BVHTree node takes a Start and a Direction, not an End. To compute the ray direction vector from the line, you can subtract the start and end of the line to get the direction.

$\endgroup$
2
  • $\begingroup$ Actually, I was expecting hit where line intersects plane, so red dot should be where green is. $\endgroup$
    – Serge L
    Commented Apr 18, 2019 at 17:08
  • $\begingroup$ @SergeL Edited the answer. $\endgroup$
    – Omar Emara
    Commented Apr 18, 2019 at 17:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .