Download

Can I get the collision primitive index from a sweep or line trace?

I have an actor that has 3 collision primitives (boxes) added. During a sweep I can’t figure out where to get the index of the collision primitive in the boxes container.

I’m building some real-time 3d text and usually I create a new actor for each line of text so I can move each line of text independently. For performance I have the option to group multiple lines of text into one Runtime Mesh component so they can all be moved together. Each line still has it’s own box for collision but now they are all on the same component/ actor. When I load the boxes into the RMC I store the index - now I want to cross reference that with one from the hit - but it does not appear to be possible.

My fallback is to loop through the boxes list and see which one the point falls inside of