For the position of a Collider component to move with its GameObject, the GameObject must have a Rigidbody. Otherwise—as far as Unity's PhysX physics simulation is concerned—the collider will not move. In other words, if a Rigidbody is not attached, the GameObject will appear to move across the screen, but in PhysX, the location of the Collider component will not be updated, and therefore the physical presence of the GameObject will remain in the original location.
- 20 Variables and Components
- from Introduction to Game Design, Prototyping, and Development: From Concept to Playable Game with Unity and C#, 2nd Edition
- Publisher: Addison-Wesley Professional
- Released: September 2017
This sounds very weird: it appears to move, but the physical presence remains in the original location. Say what?
Share this highlighthttp://www.safaribooksonline.com/a/introduction-to-game/11388883/