Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.
    Attached Files

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

    Comment


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

      Comment


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

        Comment


          #5
          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

          Comment


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

            Comment


              #7
              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?
              Youtube Channel

              Comment


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

                Comment


                  #9
                  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

                  Comment


                    #10
                    "Blocking hit" is a Boolean output of hit structure.
                    Youtube Channel

                    Comment


                      #11
                      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.

                      Comment


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

                        Comment


                          #13
                          @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.
                          Storyteller - An immersive VR audiobook player

                          Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

                          Comment


                            #14
                            OKay like this ? Click image for larger version

Name:	Untitled-4.jpg
Views:	1
Size:	344.5 KB
ID:	1088087

                            Comment


                              #15
                              it seem that is ''true''... what should i need to do next ?

                              Comment

                              Working...
                              X