RenderingConnection.RayCastQueryAsync(RayCast) Method

Definition

Performs a raycast query on the remote scene.

public:
 System::Threading::Tasks::Task<Microsoft::Azure::RemoteRendering::RayCastQueryResult ^> ^ RayCastQueryAsync(Microsoft::Azure::RemoteRendering::RayCast cast);
public System.Threading.Tasks.Task<Microsoft.Azure.RemoteRendering.RayCastQueryResult> RayCastQueryAsync (Microsoft.Azure.RemoteRendering.RayCast cast);
member this.RayCastQueryAsync : Microsoft.Azure.RemoteRendering.RayCast -> System.Threading.Tasks.Task<Microsoft.Azure.RemoteRendering.RayCastQueryResult>
Public Function RayCastQueryAsync (cast As RayCast) As Task(Of RayCastQueryResult)

Parameters

cast
RayCast

Raycast description.

Returns

Task<RayCastQueryResult>

Remarks

This call returns immediately and emits an event when the raycast result has arrived. The raycast will be performed on the server against the state of the world on the frame that the raycast was issued on. Results will be sorted by distance, with the closest intersection to the user being the first item in the array.

Applies to

See also

  • <xref:https%3a%2f%2fdocs.microsoft.com%2fazure%2fremote-rendering%2foverview%2ffeatures%2fspatial-queries>