Struct DistanceInfo
Struct used to get information back from a distance calculation between an object and a location.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: solution.dll
Syntax
public struct DistanceInfo
Properties
| Name | Description |
|---|---|
| collider | The collider associated with the point. Returns null if the distance calculation doesn't involve colliders, or if there is no valid collider for calculation. |
| distanceSqr | The distance squared between point and the location used for calculation. |
| point | The location on the object (in world space) where the distance was calculated from. |