Skip to content

Collider bindings

SDraw edited this page Jun 14, 2023 · 4 revisions

Refer to Unity's Collider documentation for properties and methods description.

Properties

  • attachedRigidbody: get, Rigidbody
  • bounds: get, Bounds
  • contactOffset: get/set, float
  • enabled: get/set, boolean
  • isTrigger: get/set, boolean

Methods

  • Vector3 ClosestPoint(Vector3 position)
  • Vector3 ClosestPointOnBounds(Vector3 position)
  • bool Raycast(Ray ray)

Utility functions

  • bool IsCollider(object obj): checks if object is type of Collider.

Notes

  • Inherits properties and methods from Component.