Edit

Share via


ElasticsManager Class

Definition

ElasticsManager can be used to add elastics simulation to supporting components. Call Initialize on manipulation start. Call ApplyHostTransform to apply elastics calculation to target transform. Elastics will continue simulating once manipulation ends through its update function - to block the elastics auto update set EnableElasticsUpdate to false.

public ref class ElasticsManager : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/Experimental/Elastics Manager")]
[UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/experimental/elastic-system")]
public class ElasticsManager : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/Experimental/Elastics Manager")>]
[<UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/experimental/elastic-system")>]
type ElasticsManager = class
    inherit MonoBehaviour
Public Class ElasticsManager
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
ElasticsManager
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.HelpURLAttribute

Constructors

ElasticsManager()

Properties

ElasticTypes

Indication of which manipulation types use elastic feedback.

EnableElasticsUpdate

Enables elastics simulation in the update method.

RotationElasticConfigurationObject

Reference to the ScriptableObject which holds the elastic system configuration for rotation manipulation.

RotationElasticExtent

Extent of the rotation elastic.

ScaleElasticConfigurationObject

Reference to the ScriptableObject which holds the elastic system configuration for scale manipulation.

ScaleElasticExtent

Extent of the scale elastic.

TranslationElasticConfigurationObject

Reference to the ScriptableObject which holds the elastic system configuration for translation manipulation.

TranslationElasticExtent

Extent of the translation elastic.

Methods

ApplyTargetTransform(MixedRealityTransform, TransformFlags)

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

InitializeElastics(Transform)

Initialize elastics system with the given host transform. Caches a reference to the host transform to be able to keep updating elastics after manipulation.

Applies to