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

Logitech G29

Discussion in 'Editor & General Support' started by Miska222, Apr 17, 2018.

  1. Miska222

    Miska222

    Joined:
    Apr 11, 2018
    Posts:
    12
    My Steering Wheel is stiff when I play my own game. How to get the stiffness of the stern?
     
  2. Bidule200

    Bidule200

    Joined:
    Apr 26, 2014
    Posts:
    18
    I think Unity cannot access the force feedback of the wheel, so you should check the Logitech app and create a profile (with zero wheel weight) for Unity (or your game, if it's a build).
     
  3. Miska222

    Miska222

    Joined:
    Apr 11, 2018
    Posts:
    12
    For example, the game called My Summer Car acts as a force feedback on the Logitech steering wheels and the game is made with Unity.
     
  4. Bidule200

    Bidule200

    Joined:
    Apr 26, 2014
    Posts:
    18
  5. Freznosis

    Freznosis

    Joined:
    Jul 16, 2014
    Posts:
    294
    Like mentioned above you need the Logitech SDK. You will also need to write a wrapper to handle the functions mentioned in the API and a script that takes your vehicle's grip, velocity, etc and feeds it into the wrapper function.

    For example:

    Code (CSharp):
    1. [DllImport(LogiSDK)] public static extern bool PlayConstant(int magnitude);
    If you need help with this I am willing to help, but I will not be writing any scripts for you.
     
  6. Miska222

    Miska222

    Joined:
    Apr 11, 2018
    Posts:
    12
    Thanks! :)