Class Collider
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public class Collider : Component
Properties
attachedRigidbody
Declaration
public Rigidbody attachedRigidbody { get; }
Property Value
bounds
Declaration
public Bounds bounds { get; }
Property Value
Declaration
public float contactOffset { get; set; }
Property Value
enabled
Declaration
public bool enabled { get; set; }
Property Value
isTrigger
Declaration
public bool isTrigger { get; set; }
Property Value
material
Declaration
public PhysicMaterial material { get; set; }
Property Value
sharedMaterial
Declaration
public PhysicMaterial sharedMaterial { get; set; }
Property Value
Methods
ClosestPoint(Vector3)
Declaration
public Vector3 ClosestPoint(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
|
Improve this Doc
View Source
ClosestPointOnBounds(Vector3)
Declaration
public Vector3 ClosestPointOnBounds(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
|
Improve this Doc
View Source
Raycast(Ray, out RaycastHit, Single)
Declaration
public bool Raycast(Ray ray, out RaycastHit hitInfo, float maxDistance)
Parameters
Returns
Extension Methods