Delen via


SpatialInteractionSourceProperties.TryGetLocation Method

Definition

Get the position, orientation and velocity of the hand or motion controller, expressed in the specified coordinate system.

public:
 virtual SpatialInteractionSourceLocation ^ TryGetLocation(SpatialCoordinateSystem ^ coordinateSystem) = TryGetLocation;
SpatialInteractionSourceLocation TryGetLocation(SpatialCoordinateSystem const& coordinateSystem);
public SpatialInteractionSourceLocation TryGetLocation(SpatialCoordinateSystem coordinateSystem);
function tryGetLocation(coordinateSystem)
Public Function TryGetLocation (coordinateSystem As SpatialCoordinateSystem) As SpatialInteractionSourceLocation

Parameters

coordinateSystem
SpatialCoordinateSystem

The coordinate system in which to express the hand's location.

Returns

The location.

Remarks

This method will return null if the specified coordinate system cannot be located at the moment.

Applies to