Component reference
Physics components
Collider component
6min
description the collider component defines the shape of an entity for collision detection purposes requirements a collider component requires a rigidbody component docid 8dhcj9 ryicubudau9q5r on the same entity or one of its parent entities properties property description shape specifies the shape of the collider options include box , sphere , capsule , cylinder , and mesh mass defines the mass of the entity, affecting how it responds to forces and collisions mass center adjusts the center of mass for the collider, influencing its rotational behavior when forces are applied friction determines how the entity interacts with surfaces, affecting sliding and resistance restitution controls the bounciness of the entity when it collides with other objects collision layer assigns the collider to specific layers, determining what it can collide with ( note currently, configuring layers may be complex and is only recommended with advanced knowledge ) collision mask defines which layers the collider will interact with ( note similar to collision layer , this is advanced and may be difficult to configure ) usage notes the collider component can be assigned in two ways 1\ automatic collider assignment (recommended) when importing a 3d model, the model component docid\ fak32wra zhpr3zxhv6s8 provides an apply colliders checkbox enabling this option automatically assigns a collider to the model this approach is designed for users who do not need advanced physics configurations ℹ️ add a rigidbody to the collider a rigidbody is still required if you haven't added one, the system prompts you to add one under the same apply colliders option in the model component docid\ fak32wra zhpr3zxhv6s8 2\ manual collider assignment for custom physics settings, you can manually add a collider component to an entity this provides full control over collider shape and size collision layers and masks friction and restitution settings if this is your preferred approach, you must add a rigidbody component docid 8dhcj9 ryicubudau9q5r manually as well