Game Development Reference
In-Depth Information
6. Finally, we will go to
SimplePlatform
|
Resources
|
PhysicsMaterials
in the
Project
view. We will see that there is
Physics2D Material
for
Ground
and
Edge
, which control
Friction
and
Bounciness
between
Player
and
Level
. We
still need to create one more
Physics2D Material
player for our player. So, right-
click and go to
Create
|
Physics2D Material
, name it
Player
, and set
Friction
to
1.2
and
Bounciness
to
0
, as shown in the following screenshot: