Editar

Partilhar via


ElasticsManager.ApplyTargetTransform Method

Definition

Applies elastics calculation to the passed targetTransform and applies to the host transform.

public Microsoft.MixedReality.Toolkit.Utilities.TransformFlags ApplyTargetTransform (Microsoft.MixedReality.Toolkit.Utilities.MixedRealityTransform targetTransform, Microsoft.MixedReality.Toolkit.Utilities.TransformFlags transformsToApply = Microsoft.MixedReality.Toolkit.Utilities.TransformFlags.Move | Microsoft.MixedReality.Toolkit.Utilities.TransformFlags.Rotate | Microsoft.MixedReality.Toolkit.Utilities.TransformFlags.Scale);
member this.ApplyTargetTransform : Microsoft.MixedReality.Toolkit.Utilities.MixedRealityTransform * Microsoft.MixedReality.Toolkit.Utilities.TransformFlags -> Microsoft.MixedReality.Toolkit.Utilities.TransformFlags
Public Function ApplyTargetTransform (targetTransform As MixedRealityTransform, Optional transformsToApply As TransformFlags = Microsoft.MixedReality.Toolkit.Utilities.TransformFlags.Move | Microsoft.MixedReality.Toolkit.Utilities.TransformFlags.Rotate | Microsoft.MixedReality.Toolkit.Utilities.TransformFlags.Scale) As TransformFlags

Parameters

targetTransform
MixedRealityTransform

Precalculated target transform that's influenced by elastics

transformsToApply
TransformFlags

Indicates which types of transforms are going to be applied. Default is Move, Rotate and Scale.

Returns

Modified transform types.

Applies to