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. Dismiss Notice

Use smartphone as joystick on the Web Player

Discussion in 'Editor & General Support' started by GiulioPerosino, Oct 21, 2014.

  1. GiulioPerosino

    GiulioPerosino

    Joined:
    Nov 4, 2013
    Posts:
    2
    Hi everyone. First of all I'm sorry for my grammatical errors, english is not my native language.
    I'm working on a racing web game developed with Unity. I'm wondering how I can use the smartphone as joystick while the game is running on the web player.

    This is a great example: multeor.com

    In my racing game you can control the Player with the accelerometer, use objects with a button, see the number of laps, and other stuffs.. The idea is to display this kind of stuffs on the smartphone display and keep the game main window clear.

    How can I send parameters from the smartphone (like the accelerometer values) to the Web Player? What is the scripting language to do so? Do you think that the latency would be too high?

    Thanks for the attention, best regards,
    Giulio
     
  2. randomperson42

    randomperson42

    Joined:
    Jun 29, 2013
    Posts:
    974
    GarBenjamin likes this.
  3. GiulioPerosino

    GiulioPerosino

    Joined:
    Nov 4, 2013
    Posts:
    2
    randomperson42 likes this.