How to get the correct material on Hit?

ZenRigpa
Wed, 25 May 2016 13:24:57 +0000
Rendering

Hey guys,

i am currently working on the Bullet impact effects and sounds when hit physics materials. It works well on my Static Meshes that have only one Material. However, if i have Multiple Materials in my Meshes it only returns the First Material.
For Example, i have a Wall element with 2 Different Materials, Wood for the Wall itself and Glass for the windows. It would only return Wood.

How do i get the correct material when hitting with traces?
Like i said it works well with other Meshes that have only one Material. But if it has multiple Materials it returns just the first Material Element in the list i think…

5 posts - 1 participant