加载中...
Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Cancel
3
  • $\begingroup$ Why separate? Just use the endpoint selection as an the input selection for the set position node and forgo the separate andnjoin node s $\endgroup$ Commented Sep 28, 2024 at 14:43
  • $\begingroup$ @Leander perhaps OP is resampling part of the curve. $\endgroup$ Commented Sep 28, 2024 at 14:56
  • $\begingroup$ I posted a minimal example, to keep the screenshots tidy. I split the curves after using a raycast node to check if something is inside a target object. Then, I resample points inside the object, and select the position of the first and last point inside the object. This gives a 3D vector which is crossed with a vector generated from the target object's rotation. Together, these decide the projection direction. The actual ray direction gets spread out over a 180 degree arc (+90 and -90 degrees wrt the proj dir), using a map range with the curve indices. This feeds into a second raycast. $\endgroup$ Commented Sep 28, 2024 at 18:17