Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Haptic Vibration Unity Plugin for Android

Discussion in 'Android' started by chickenbonebob, Aug 31, 2012.

  1. chickenbonebob

    chickenbonebob

    Joined:
    Jul 6, 2012
    Posts:
    10
    I'm happy to annouce the release of Immersion's Haptic Plugin for Unity Android projects. This new free plugin extends the existing Android vibration method to allow for more than just click and buzz vibe effects.

    Developers like Rockstar Games have used the Immersion effect library for their Android versions of Grand Theft Auto III and Max Payne Mobile. Sega has used the library for their Sonic CD and Sonic 4 Ep. 2 games and Handy Games just re-launched 5 of their games using Immersion's pre-made haptic vibe effects to give their users a more console-like gaming experience.

    This plugin gives developers a full library of 124 pre-made haptic vibration effects to choose from. Categories of effects range from simple UI confirmations to gaming effects like machine guns, explosions, engines, and even vibro-tactile textures.

    Benefits of this plugin include:
    • Pre-made library of 124 vibe effects
    • A universal abstraction layer that compensates for differences in vibe motors types
    • A way to differentiate your app from competitors
    • Potential promotional opportunities for using "Haptics" in your app
    In addition, you can preview the 124 effect library using the free Immersion Haptic Effect Preview app available on Google Play.

    Note, if you do use the Haptic Plugin for Unity, Immersion asks that you give credit by saying "Enabled with Immersion Haptic Vibration Feedback Technology" in your apps description on Google Play or other stores you post your app on.

    And if you let Immersion know about your new "Haptic" app by emailing HapticsDev@immersion.com Immersion may like to help you promote it.

    For iOS developers, if Apple opens up full vibration support to the developer community, this plugin will be updated for iOS.
     
  2. whazlewo

    whazlewo

    Joined:
    May 17, 2012
    Posts:
    6
    Should this work on Mac/PC/Linux?
     
  3. chickenbonebob

    chickenbonebob

    Joined:
    Jul 6, 2012
    Posts:
    10
    Hi are you running on an actual Android device or did you mean you are building your app for the Mac/PC and Linux targets? The plugin doesn't work on the Android emulator or any other Unity targets, only on Android devices what have motors in them.

    Most Android devices have motors, but some like early kindle or Nexux 7in inch tablets do not. :(

    For more details on the vibration tools we offer for free, like NDK support, sample code and a full API, visit the Immersion developer pages at: www.immersion.com/haptic/sdk
     
  4. keithsoulasa

    keithsoulasa

    Joined:
    Feb 15, 2012
    Posts:
    2,126
    Looks cool, might add this into my own android project
     
  5. Metrik

    Metrik

    Joined:
    Apr 18, 2011
    Posts:
    12
    This is very interesting! I'm in love to death with haptic feedback on my samsung galaxy, i'll definately look into this for the release of my upcoming game. Hopefully with the release of iOS6 they could open up haptic feedback *fingers crossed*
     
  6. MADmarine

    MADmarine

    Joined:
    Aug 31, 2010
    Posts:
    627
    I wasn't able to get this to work with Unity, I tried downloading the sample project, extracted the latest Unity extension package into it and deployed to a few of my Android devices but it crashes every time. Any idea where I could be going wrong?
     
  7. FiveFingers

    FiveFingers

    Joined:
    Oct 15, 2009
    Posts:
    541
    Kramboja likes this.
  8. josessito

    josessito

    Joined:
    Feb 14, 2014
    Posts:
    57
    This worked great! Thanks for this fantastic plugin. I bought a couple of assets from the store but none worked as easy as this one, and you have a lot of control if you want something specific. I'm not an experienced programmer and the setup was really easy. Thanks again.
     
    FiveFingers likes this.
  9. brzozowsky

    brzozowsky

    Joined:
    Sep 12, 2011
    Posts:
    39
    Newest version dont work for me.
    I call it with "TouchSense.instance.playBuiltinEffect(24);" or "TouchSense.instance.playBuiltinEffect(TouchSense.SHARP_CLICK_100);" from a java script but nothing happens. :confused:

    I have also this error message:
    Assets/Plugins/TouchSenseEffectBundle.cs(57,20): warning CS0219: The variable `ts' is assigned but its value is never used

    Versions:
    - hapticpluginforunity_v3_7_45_2
    - Unity 4.5.0 f6
     
    Last edited: May 30, 2014
  10. gabriro

    gabriro

    Joined:
    Dec 6, 2012
    Posts:
    6
    hi does any one can share this plugin on immersion site only request form and they dont send the link to download over 2 weeks
     
  11. gabriro

    gabriro

    Joined:
    Dec 6, 2012
    Posts:
    6
    i have old package and it does not work with unity4.5.xx
     
  12. chickenbonebob

    chickenbonebob

    Joined:
    Jul 6, 2012
    Posts:
    10
    UPDATE: There are now 3 versions of the Unity Plugin for developers to use for Android projects: Evaluation, Light and Full. If you ever find a problem with the plugin, just contact their Forum pages here: www.immersion.com/haptic/forum.

    The Evaluation version you can get straight away from here: https://touchsense.com/games/developers/request-sdk-evaluation-license

    The Light and Full versions must be approved and can take 2-4 days depending on weekends.

    Also, you should know that Google has started promoting games using this Immersion library through their "Games You Can Feel" promotions. Their last promo link is below, but I'm not certain how long that link is visible.

    Google Games You Can Feel link: https://play.google.com/store/apps/collection/promotion_30014e7_haptics_games?hl=en

    Lastly, Immersion is getting into adding Haptics to video clips, an example is on Google Play here: https://play.google.com/store/apps/details?id=com.immersion.tactileshowcase

    If you want to know the methods for adding Haptics to your video content in Unity, email content@immersion.com