BoxCollider is an invisible, box-shaped component that defines the physical boundaries for GameObject interactions, crucial for collision detection and physical simulations. Ideal for simple, axis-aligned shapes like crates or buildings, it can be used with Rigidbody for physics-based interactions or for event triggering areas. It allows for specifying position and dimensions relative to the GameObject it's attached to. For comprehensive understanding, the official Unity BoxCollider documentation is recommended. Unity's BoxCollider Documentation
Properties
Specifies the BoxCollider's position relative to the GameObject's local coordinates, enabling offset adjustments. Unity's BoxCollider.center Documentation
Adjusts the BoxCollider's dimensions within the GameObject's local space, suitable for aligning the collider accurately with the GameObject. Unity's BoxCollider.size Documentation
Updated 21 days ago