Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains information about a single raycast hit.
struct Microsoft::Azure::RemoteRendering::RayCastHit
The Entity that was hit with the raycast.
ApiHandle<Microsoft::Azure::RemoteRendering::Entity> HitObject{};
The ID or index of the part that was hit.
This can be used to get the Material at the raycast intersection.
First query for the MeshComponent, then query for the material using MeshComponent.UsedMaterials[SubPartId].
int32_t SubPartId{};
The world space position where RayCastHit.HitObject was hit.
Microsoft::Azure::RemoteRendering::Double3 HitPosition{};
The world space normal where RayCastHit.HitObject was hit.
Microsoft::Azure::RemoteRendering::Float3 HitNormal{};
Distance along the normalized ray direction to the hit.
RayCast.StartPos + normalize(RayCast.EndPos - RayCast.StartPos) * RayCastHit.DistanceToHit == RayCastHit.HitPosition
double DistanceToHit{};
Classifies the face type of the hit. See RayHitType for the distinct face types.
Microsoft::Azure::RemoteRendering::RayHitType HitType{};