Dmitry Dmitriev
Dmitry Dmitriev

Reputation: 1059

Why Cubes falls through the floor but Player sphere dose not?

Start passing first tutorial "Roll-a-Ball", and at the stage #3 "Collecting, Scoring and Building the game", I saw an interesting thing without explanation:

Both "Player" and "Pick Up" have "Rigid Body component attached" and have Use Gravity checkbox selected. But "Player" sphere dose not falls thought "Ground" mesh, but "Pick Up" cubes dose.

Why it happens?

here is moment in video: https://youtu.be/XtR29MmzuT0?t=14m35s

Upvotes: 1

Views: 401

Answers (1)

EvilTak
EvilTak

Reputation: 7579

The BoxCollider on the pick up prefab is marked as a trigger (i.e. IsTrigger is set to true). A trigger collider behaves as a volume or space in the world, unlike regular colliders which represent an actual physical entity. A trigger collider does not interact with the world, but raises events when a Rigidbody enters/exits/stays in the volume in the world represented by it.

Upvotes: 4

Related Questions