Obi Official Forum
Help Raycast. Interaction with liquid - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Help Raycast. Interaction with liquid (/thread-3087.html)



Raycast. Interaction with liquid - Igor_Kozulin - 07-09-2021

Help me, please.
Is there a way to register the interaction of rays with a liquid?
The task is as follows:
if a ray hits a liquid, then it turns red, otherwise, it remains blue.


RE: Raycast. Interaction with liquid - josemendez - 13-09-2021

(07-09-2021, 04:30 PM)Igor_Kozulin Wrote: Help me, please.
Is there a way to register the interaction of rays with a liquid?
The task is as follows:
if a ray hits a liquid, then it turns red, otherwise, it remains blue.

Yes, there's an entire section of the manual dedicated to spatial queries such as raycasts. See:

http://obi.virtualmethodstudio.com/manual/6.2/scriptingqueries.html