Collider
Inherits from: Component
Collider acts as an invisible force field around GameObjects, essential for interactions like collisions and input responses. Integrating with Rigidbody, Colliders allow objects to engage physically with the game world, simulating real-world physics. Various Collider types match different object shapes, enabling precise interaction management. Colliders can be set as triggers for event detection without physical response, offering versatility in gameplay mechanics. Refer to the official Unity Collider documentation for in-depth guidance.
Properties
Toggles the Collider's interaction capabilities; disabling prevents collision detection.
Points to the Rigidbody component associated with the Collider, crucial for physics interactions.
Converts the Collider into a Trigger, which notifies of entering or exiting objects without physical collisions.
Adjusts collision detection sensitivity, controlling the threshold for collision recognition.
Retrieves the Collider's world space bounds, outlining its physical extent.
Indicates the capability to modify collision contacts, useful for custom collision handling.
Identifies if the Collider supplies collision contact data, facilitating detailed interaction analysis.
Determines override precedence in Layer Collision Matrix conflicts, guiding collision layer resolution.
Specifies layers to exclude from collision detection, enhancing control over interaction scope.
Defines layers to include in collision detection, allowing targeted interaction setups.
Methods
Determines the nearest point on the Collider to a specified location, useful for proximity-based interactions.
Updated 6 months ago