Creating Physical Materials
In UE5, you can customize how an object behaves while simulating physics using Physical Materials. To get into this new type of asset, let’s create our own:
- Create a new folder inside the
Content
folder calledPhysics
. - Right-click on the Content Browser area while inside that folder and, under the Create Advanced Asset section, go to the Physics subsection and select Physical Material.
- Name this new Physical Material PM_Dodgeball.
- Open the asset and take a look at the available options:
Figure 6.13 – Asset options
The main options we should note are as follows:
- Friction: This property goes from
0
to1
and specifies how much friction will affect this object (0
means this object will slide as if it was on ice, while1
means this object will stick like a piece of gum). - Restitution (also known as Bounciness): This property goes from
0
to1
and specifies how much velocity will be kept...