Surface reaction character with physical material

Step 0.

Let's make a surface reaction character on Unreal engine 4.
We can make it with trigger box(volume). But character with physical material is more accurate and easier to setup.





Step 1.

These are final assets. Maybe you don't need 'mud' things.



Open 'Project settings'. Add Physical surface properties.



Step 2.

Create new PhysicalMaterial and select surface type.


Step 3.

Create a material and change Phys Material.


Step 4.

 This is the character blueprint.


 How to find a slope vector from normal :
https://stackoverflow.com/questions/4372120/how-do-i-calculate-the-downward-slope-vector-of-a-3d-polygon



More...

 In most cases, we do not need to do check surface on every tick.


Comments

Popular posts from this blog

Liquid material in a bottle

How to Make Circular Progress Bar(or Rounded Rectangle)

MatCap material