Game Development Reference
In-Depth Information
Figure 3-21. The offset cube stack (left), and the results of the adjustment in Play mode (right)
The results are more interesting, but there's something missing. They react as if they were made of
concrete.
Physic Materials
The Rigidbody component controls a good part of the object's physical interaction with the scene,
but not all. To have the objects interact as if they were made of different materials, you will have to
assign a Physic Material. This property is assigned through the collider components.
1.
Stop Play mode.
2.
Right-click in the Project view, and from the Create submenu, select Physic
Material.
A new Physic Material is created (Figure 3-22 ). It has a number of parameters that are not
necessarily meaningful unless you've had a Physics class. You could, of course, do a lot of testing,
but there's another option. There is a Unity package with several preset materials that you can use
as is or tweak to refine.
 
Search WWH ::




Custom Search