We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

raycaster is not work

Home Forums Puzzles raycaster is not work

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23275
    wlhm1984
    Participant

    i want to check obj1 is intersect obj2 or not in axis x direction,i use this method,but it is not work,can you give some advice?thanks very much!
    var raycaster = new v3d.Raycaster(obj1.position,new v3d.Vector3(1, 0, 0),0,10000);
    var intersects = raycaster.intersectObject(obj2);

    #23307

    Hi,

    I tested the raycaster on simple scene with a couple objects and it works for me. Can you share a test case where it doesn’t work?

    Co-founder and lead developer at Soft8Soft.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.