I want to be able to pull boulders off the ground. But I only want to be able to do so if the material of the landscape where I’m standing is rocky. Also if there are meshes around me that are rocky, such as a stone static mesh.
So I would need to survey the materials around me (landscape and static meshes) and check if they are a certain material type (rock).
Hey there @carmanfer! For static meshes, it would be as simple as adding tags to the rocks and comparing tags for any meshes that overlap an area alternatively you can make a rock physical material and compare to that, which leads me to the next recommendation. For the landscape materials instead of actual static meshes, you will have to trace to the landscape for a physical material, kind of like this tutorial for footsteps:
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.