Someone can confirm that the physical material in the 4.9 is broken ?

Someone can confirm that the physical material in the 4.9 is broken ?

I simply want to change the sounds on each materials i steps on with my character but it seem that i can only use the default slot to make a sound.

Please someone, i don’t know what to do with this. I need to figure out something that will work.

What is the output from the surface type? Put some breakpoints on there and see what the actual values are.

What do you mean by put some breakpoints on there ?? i don’t know exacly how to do it. Thanks for your time!

Breakpoints are how you debug your code, something you should always do before trying to get people to solve your problem. Right click on a node and add a breakpoint, then when the code fires it will pause at that point so that you can inspect what the variable is on the physical material. The physical materials definitely work in 4.9 still

Good to know thanks for the hint! The return value is default.

Make sure you read material value only when your ‘Breaking Hit’ value is true.
I’ve noticed that my code which involves querying for collision or raycheck material started working slightly different in 4.9 but adding extra check on having an actual object to query that data from helped. Another thing to check is try setting your physics materials in the static mesh component (override physics material) instead of relying on setting it in rendering material, I had this bug too. Did you added your physics materials in project settings?

Well…In the static mesh i already override the physics material and i also have the physics material in the project settings.

When you say make sure you read material value when you breaking hit. What do you mean by that ? Sorry i don’t have super duper skills in blueprint :s

“Blocking hit” is a Boolean output of hit structure.

Ok… i know what is a bool but… you know what ? I think i will need a drawing :s I’m sorry i’m more visual.

well… i guess my problem will not be resolve before i see my client.

@Live000 - from the line trace node, he means to drag the “Blocking Hit” boolean off into a Branch node, and check to make sure the “Blocking Hit” value is “True” before doing the rest of your code.

Just right click, type “Branch” and make a Branch node. Then drag the red dot from your line trace that says “Blocking Hit” to the Branch node, and then connect it after your trace but before the rest of your code for playing the sound and checking the physics material.

OKay like this ?

it seem that is ‘‘true’’… what should i need to do next ?

So does it work now or not?

Try this approach too: Physical Material / Surface Type problems - World Creation - Unreal Engine Forums

nah doesn’t work :frowning:

i’m just able to load the default slot sound