Introduction to primitive collider shapes
Sphere collider component reference
Box collider component referenceSwitch to ScriptingThe Box colliderAn invisible shape that is used to handle physical collisions for an object. A collider doesnât need to be exactly the same shape as the objectâs mesh - a rough approximation is often more efficient and indistinguishable in gameplay. More info
See in Glossary is a built-in cube-shaped collider. It is useful for in-application items such as boxes and crates, or as a simple collider shape that you can stretch and flatten to make ledges, steps, and any other cuboid objects.
The Box collider is a low-poly shape, with low resource requirements.
Property Description Edit Collider Enable the Edit Collider button to display the colliderâs contact points in the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More infoOnTriggerEnter
, OnTriggerStay
, and OnTriggerExit
. Provides Contacts Enable Provides Contacts to generate contact information for this collider at all times. Usually, a collider only generates contact data if there is something to send it to; in this case, the messages OnCollisionEnter
, OnCollisionStay
, or OnCollisionExit
. When Provides Contacts is enabled, the collider generates contact data for the physics system at all times. Contact generation is resource-intensive, so Provides Contacts is disabled by default. Material Add the Physics Material component that determines the friction and bounciness of this collider. Center Define the position of the collider on each axis in the GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObjectâs functionality is defined by the Components attached to it. More infoThe Layer Overrides section provides properties that allow you to override the project-wide Layer-based collision detection settings for this collider.
Property Description Layer Override Priority Define the priority of this collider override. When two colliders have conflicting overrides, the settings of the collider with the higher value priority are taken.Introduction to primitive collider shapes
Sphere collider component reference
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4