Enum XRBaseInteractable.MovementType | XR Interaction Toolkit | 0.10.0-preview.7
docs.unity3d.com
    Show / Hide Table of Contents

    Enum XRBaseInteractable.MovementType

    Type of movement for an interactable.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public enum MovementType

    Fields

    Name Description Value
    VelocityTracking

    In VelocityTracking mode, the Rigidbody associated with the will have velocity and angular velocity added to it such that the interactable attach point will follow the interactor attach point as this is applying forces to the Rigidbody, this will appear to be a slight distance behind the visual representation of the Interactor / Controller.

    0
    Kinematic

    In Kinematic mode the Rigidbody associated with the interactable will be moved such that the interactable attach point will match the interactor attach point as this is updating the Rigidbody, this will appear a frame behind the visual representation of the Interactor / Controller.

    1
    Instantaneous

    In Instantaneous Mode the interactable's transform is updated such that the interactable attach point will match the interactor's attach point. as this is updating the transform directly, any rigid body attached to the GameObject that the interactable component is on will be disabled while being interacted with so that any motion will not "judder" due to the rigid body interfering with motion.

    2
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023