Struct RayCast
Parameters for doing a raycast.
struct Microsoft::Azure::RemoteRendering::RayCast
Fields
StartPos
Start position for the raycast in world space.
Microsoft::Azure::RemoteRendering::Double3 StartPos{};
EndPos
End position of the raycast in world space.
Microsoft::Azure::RemoteRendering::Double3 EndPos{};
HitCollection
See HitCollectionPolicy.
Microsoft::Azure::RemoteRendering::HitCollectionPolicy HitCollection{};
MaxHits
The maximum number of hits to collect. Only needed for HitCollectionPolicy.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.
int32_t MaxHits{};
CollisionMask
Reserved for future use.
uint32_t CollisionMask{};