RayCast Struct
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.
Parameters for doing a raycast.
public value class RayCast
public struct RayCast
type RayCast = struct
Public Structure RayCast
- Inheritance
-
RayCast
Constructors
RayCast(Double3, Double3, Double, HitCollectionPolicy, Int32, UInt32) | |
RayCast(Double3, Double3, HitCollectionPolicy, Int32, UInt32) |
Fields
CollisionMask |
Reserved for future use. |
EndPos |
End position of the raycast in world space. |
HitCollection |
See HitCollectionPolicy. |
MaxHits |
The maximum number of hits to collect. Only needed for ClosestHits. This number must be between 0 and 1024, with 1024 being a hard limit for the number of supported hit results. A value of 0 returns up to the maximum number of supported hits. In case the number of actual hits exceeds the limit, the n closest hits are returned. |
MaxNumRayCastHits | |
StartPos |
Start position for the raycast in world space. |