O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - make the Mesh Colliders convex

One thing that we can do to make our Mesh Colliders behave better is to mark them as "convex". Game Objects that are in motion (like our HandsAndTray soon will be) tend to react better with other moving colliders if we make this small change.

  1. In the Hierarchy panel, click on the HandsAndTray Game Object.
  2. Click on the gray arrow next to the Game Object's name to expand it. Inside, we find the handsAndTray model.
  3. Click on the inset gray arrow to expand the model and view its contents. You should see the Hands_Mesh and Tray_Mesh unfold beneath it.
  4. Select Hands_Mesh.
    Time for action - make the Mesh Colliders convex
  5. In the Inspector panel, under the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required