RayCastHit.DistanceToHit Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Distance along the normalized ray direction to the hit.
public: double DistanceToHit;
public double DistanceToHit;
val mutable DistanceToHit : double
Public DistanceToHit As Double
Field Value
Remarks
StartPos + normalize(EndPos - StartPos) * DistanceToHit == HitPosition