When I place a material with a Physical Material on a landscape, the Physical Material no longer works. If I take that same material and apply it to a static mesh, the Physics Material works.
To make sure it wasn’t a problem with my Physical Material, I loaded up the Generic Shooter kit and applied the default materials from the kit to the landscape and I got the same results. Applying my material to the static meshes in that kit resulted in my material working as expected.
I have spoken to Allar and we have both concluded that this seems like an engine bug as neither Allar or I can see anything in the code that excludes landscapes.
I basically reproduced it like the above question.
I have a blank project, add a new landscape, added a new material, assigned a physical material to the landscape and did a ray trace. It never returns my physical material.
It does work on static meshes as expected … so I am very confused now.
You have to add the Physical Material to the Material you are using. In the second screenshot you provided, it looks like you haven’t added the physical material there.
Try this and let me know if you are still experiencing the same result.
This helped me out. Gotta say though, doesn’t seem like this is an intended/intuitive behavior, as I’m not seeing the link between generating overlap events and the physical material being returned on a query.
If anybody is still having issues with this, despite trying the “Generates Overlap Events” solution, please see my comment at the bottom of this thread:
If anybody is still having issues with this, despite trying the “Generates Overlap Events” solution, please see my comment at the bottom of this thread:
This looks like a bug… A little more info:
sculpting a segment updates the physics material for that section
Checking and unchecking “generate overlap events” results in the new physics material working
From this, it seems that either action causes the collision to be updated, making this a bug, as the collision should be updated when changing physics material
For everyone new to this post !
What you may need to do is :
Go to your landscape collision settings.
Set “Simple Collision Mip Level” to a value more than “Collision Mip Level”, example : “Collision Mip level = 0”,
“Simple Collision Mip level = 1” (Simply doing that worked for me).
Hey everybody! My problem was related to the “No Foliage” layer, the Landscape is actually trying to get the physical material from it. I will try a workaround this