Interface IDualMotorRumble | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IDualMotorRumble

    A simple haptics interface that allows to control two motors individually.

    Inherited Members
    IHaptics.PauseHaptics()
    IHaptics.ResumeHaptics()
    IHaptics.ResetHaptics()
    Namespace: UnityEngine.InputSystem.Haptics
    Syntax
    public interface IDualMotorRumble : IHaptics

    Methods

    SetMotorSpeeds(Single, Single)

    Set the motor speeds of the left and right motor.

    Declaration
    void SetMotorSpeeds(float lowFrequency, float highFrequency)
    Parameters
    Type Name Description
    System.Single lowFrequency

    Speed of the low-frequency (left) motor. Normalized [0..1] value with 1 indicating maximum speed and 0 indicating the motor is turned off.

    System.Single highFrequency

    Speed of the high-frequency (right) motor. Normalized [0..1] value with 1 indicating maximum speed and 0 indicating the motor is turned off.

    Remarks

    Note that hardware will put limits on the level of control you have over the motors. Rumbling the motors at maximum speed for an extended period of time may cause them to turn off for some time to prevent overheating. Also, how quickly the motors react and how often the speed can be updated will depend on the hardware and drivers.

    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