Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Question about the collision filter for the particles
#5
(15-11-2022, 12:54 AM)snowtv Wrote: I think I figured out the collision filter (although I can't test it yet because I got another problem with Obi's raycast)

[Image: q62ZhHE.png]

As you can see I'm raycasting from the left side of the cyan lines in the direction of these lines, however the particles been hit seems to be off, they are to the left of the starting point of the ray. My ray's thickness is 1.5, is this the reason why it's happening?

A thickness of 1.5 meters is a lot, chances are the rays are hitting something right at their origin point.


(15-11-2022, 12:54 AM)snowtv Wrote: Also, does the raycast example in http://obi.virtualmethodstudio.com/manua...eries.html return every particle hit by the ray or only the first particle?
Maybe I should use all simplices inside some boxes instead?

Raycasts return the first hit only. If you want to return all particles within an area, using a box query would be a better approach indeed.

kind regards,
Reply


Messages In This Thread
RE: Question about the collision filter for the particles - by josemendez - 15-11-2022, 08:31 AM