C# Class UnityEngine.Collider

Inheritance: Component
Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
ClosestPointOnBounds ( Vector3 position ) : Vector3

The closest point to the bounding box of the attached collider.

Raycast ( Ray ray, RaycastHit &hitInfo, float maxDistance ) : bool

Private Methods

Method Description
INTERNAL_CALL_ClosestPointOnBounds ( Collider self, Vector3 &position, Vector3 &value ) : void
INTERNAL_CALL_Internal_Raycast ( Collider col, Ray &ray, RaycastHit &hitInfo, float maxDistance ) : bool
INTERNAL_get_bounds ( Bounds &value ) : void
Internal_Raycast ( Collider col, Ray ray, RaycastHit &hitInfo, float maxDistance ) : bool

Method Details

ClosestPointOnBounds() public method

The closest point to the bounding box of the attached collider.

public ClosestPointOnBounds ( Vector3 position ) : Vector3
position Vector3
return Vector3

Raycast() public method

public Raycast ( Ray ray, RaycastHit &hitInfo, float maxDistance ) : bool
ray Ray
hitInfo RaycastHit
maxDistance float
return bool