Physical Materials
In UE4, the way you can customize how an object behaves while simulating physics is through Physical Materials. In order 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
while inside that folder and, under theCreate Advanced Asset
section, go to thePhysics
subsection and selectPhysical Material
. - Name this new Physical Material
PM_Dodgeball
. - Open the asset and take a look at the available options.
The main options we should note are as follows:
Friction
: This property goes from0
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 from0
to1
and specifies how much velocity will be kept after colliding...