Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Indication of which manipulation types use elastic feedback.
Enables elastics simulation in the update method.
Reference to the ScriptableObject which holds the elastic system configuration for rotation manipulation.
Extent of the rotation elastic.
Reference to the ScriptableObject which holds the elastic system configuration for scale manipulation.
Extent of the scale elastic.
Reference to the ScriptableObject which holds the elastic system configuration for translation manipulation.
Extent of the translation elastic.
Applies elastics calculation to the passed targetTransform and applies to the host 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.