How to determine the thickness of a mesh along a path
Hi-- I'm trying to find a way to determine the relative thickness of a mesh along a path (a raycast, for instance, but other means are useful too). Basically I want a function that returns the effective thickness oin Unreal Units of a mesh along a segment. I tried to use a multiline trace by channel creating a new channel and setting all collisions to "overlap", but given the point where the first collision with the mesh occurs, I don't know how to figure out where the raycast "exits" the mesh. Does anybody have any idea?
asked Aug 03 '16 at 08:27 AM in Blueprint Scripting
You are looking in the right direction!
So your raycast gives an array of different
So to find the width of the mesh you need to check each hit's actor and if it is the actor you want to calculate it's width from you store the hit's location.
This is an example that will save the width of the first actor it hits:
hope this helps :)
answered Aug 03 '16 at 11:37 AM
As PasteDog mentioned, do 2 traces, one trace from start to end, another trace from end to start. Then check if both trace hit same object. So the first trace gives you entry point, and second gives you exit point. Hope it helps.
answered Aug 22 '17 at 01:52 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here