====== Collider (UnityComponent) ====== Collider is a component required to detect collision.\\ * [[https://docs.unity3d.com/2018.3/Documentation/Manual/CollidersOverview.html | Colliders (Unity manual)]] * [[https://docs.unity3d.com/2018.3/Documentation/Manual/class-BoxCollider.html |Box Collider (Unity manual)]] * [[https://docs.unity3d.com/2018.3/Documentation/Manual/class-SphereCollider.html |Sphere Collider (Unity manual)]] * [[https://docs.unity3d.com/2018.3/Documentation/Manual/class-CapsuleCollider.html | Capsule Collider (Unity manual)]] ===== Summary of Colliders in VCI ===== * Currently allowed Colliders are [[https://docs.unity3d.com/2018.3/Documentation/Manual/class-BoxCollider.html|Box]], [[https://docs.unity3d.com/2018.3/Documentation/Manual/class-SphereCollider.html|Sphere]] and [[https://docs.unity3d.com/2018.3/Documentation/Manual/class-CapsuleCollider.html|Capsule]] only. * **MeshCollider is not supported** * Required to use onTrigger function of [[en:vci:script:reference:eventfunction|VCI event functions]]. * Required to use [[en:vci:component:sdk:subitem|VCI SubItem Component (VCISDK)]]. ===== Properties ===== ^ Property ^ Feature^ | Is Trigger | When enabled, the Collider will be used as a detector to invoke an event.\\ Physical collision will be disabled.\\ **Enable**, if you want the objects to overlap with each other | | Material | By assigning [[https://docs.unity3d.com/2018.3/Documentation/Manual/class-PhysicMaterial.html | Physic Material]],\\ you can specify how the object behaves when colliders meet. | | Center | How far the origin point of the collider is offset from the origin point of the GameObject to which the Collider is attached | ^ Box Collider ^^ | Size | Size of the Collider (x, y, z) | ^ Sphere Collider ^^ | Radius | Radius of the Collider | ^ Capsule Collider ^^ | Radius | Radius of the Collider | | Height | Height of the Collider | | Direction | Direction of the height axis | In Virtual Cast, avatars and the floor have colliders attached to them.\\ To avoid hitting those, enable "Is Trigger".