Jump to content

ray specific group of points using their normals on a primitive


Recommended Posts

in attached file, I'm trying to ray the group of points "base_points" from the side faces onto the middle primitive, but It doesn't work.

If I use minimum distance it works but the side faces get distorted, the points don't go in a straight line, but to the closest part, and I want distortion on the side faces.

I make sure the direction of the normal is exactly what I want, but the Project Rays vector normal doesn't work

ray_normal.png

ray_normal.hiplc

Link to comment
Share on other sites

Hi Karen

the reason is because it fails to find a primitive when shooting a ray in the normals direction since your target collision only has 1 primitive (1 face in the middle). What you could do is drop a convertline node before the ray to break your target's edges into 4 primitives, that should fix the issue. Added VEX version as a bonus 

ray_normal.hiplc

image.thumb.png.87dd9f210d8ab26acd61443b614b1f87.png

 

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...