Notifications
Clear all

[Closed] Recursive branching

Hello! I am an enthusiast that started with maxscript quite recently and who has a question that couldn’t answer by himself.
I’m writing a recursive branching script and I’d like to stop the branches from growing as soon as they hit a surface.
This is a screenshot of it
Do you have any idea how can i achieve this?
Thanks

2 Replies
 lo1

You need to change the code in line 47.

A blind guess would be that you can build a Ray and use it with intersectRay(), intersectRayEx() or intersectRayScene().

As Rotem suggested, a piece of code is always appreciated if you need to solve a specific problem.