Search Unity

realtime hearrate inside unity

Discussion in 'Game Design' started by Anumeha, Nov 30, 2017.

  1. Anumeha

    Anumeha

    Joined:
    Aug 25, 2017
    Posts:
    1
    Hello,

    We are working on a project currently.In this project we have the requirement of manipulating our game with the realtime physiological signals for example heartrate or facial expression.We had developed a game flappy bird on unity.Now our next requirement is to steer the bird's speed based on the realtime hearrate of the user.To explain it in detail by the above statement i mean that if the heartrate goes down the bird moves fast and if the heartrate goes up the bird moves slow.For this we need the realtime heartrate inside our unity game.So,we would kindly like to ask if it is possible to take real time data inside unity by any means and if yes the could you please help us in knowing those.

    Also,we are naive users of unity and thereby would be requesting if any such game had been developed in unity prior or not?f any such game has been done prior in your knowledge then we would also like to have a view of the source code to see how it has been integrated or developed.

    Awaiting for your kind and prompt response.
     
  2. Habitablaba

    Habitablaba

    Joined:
    Aug 5, 2013
    Posts:
    136
    There was an app a while ago that took your pulse using the back facing camera + flash. It pumped a bunch of light into your finger and then measured the change in color as blood flowed through it (or at least, that was the explanation that was given). It was super cool. I bet you could do something like that to monitor heart rate.
     
  3. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Or, to interface with any real-world sensor, you would just write the appropriate code in C#. For example you might use MQTT, which a lot of devices already speak (or can be easily made to do so).

    But this is not a game design question, either. For "how to" questions, please try the Scripting or Getting-Started forum.