Skip to main content

Collider

info
  • This class is only available on LocalAvatarScripts and LocalScripts

Respresents collider data.

Instance Properties

Property NameProperty TypeDescription
itemItemThe item attached to the collision (Read only)
isTriggerboolSpecifies if the collider is configured as a trigger
contactOffsetfloatContact offset value of the collider
boundsBoundsThe world space bounding volume of the collider (Read only)
hasModifiableContactsboolSpecify whether the collider's contacts are modifiable or not
providesContactsboolWhether or not the collider generates contacts for Physics.ContactEvent
layerOverridePriorityintA decision priority assigned to the Collider used when there is a conflicting decision on whether a Collider can contact another Collider

Instance Methods

Method NameReturn TypeDescription
ClosestPointfloat3Returns a point on the collider that is closest to a given location
ClosestPointOnBoundsfloat3The closest point to the bounding box of the attached collider
RaycastRaycastHitRaycasts a ray with a max distance and returns the result