0

I am using the X3DOM library for JavaScript. With the function X3DOM.runtime.shootray(x, y) it is possible to receive the first object that the ray hits and the coordinates of the spot. The problem is, all my objects are placed on a plane ("floor") and I need the intersection point between the ray and the floor rather than with the objects on it.

Intersection

Any solution idea? Some of my ideas were:

  • Let the ray go all the way and receive all intersections rather than stopping on the first hit object
  • Make the ray somehow pass through the objects and hit the floor (make the objects "invisible")

But I couldn't find any way to accomplish any of this. I'd be thankful for a bit of help.

Liglo App
  • 3,719
  • 4
  • 30
  • 54

0 Answers0