Search Unity

Physical gestures (swing, jab, throw)

Discussion in 'AR/VR (XR) Discussion' started by dil33pm, Mar 9, 2016.

  1. dil33pm

    dil33pm

    Joined:
    Aug 5, 2015
    Posts:
    5
    Hi,

    I am trying to make a game which uses the Android phone as the controller. The game is based on sports activities and hence the controller is not virtual joystick or buttons. I want the phone to emulate Wii-remote and its physical gestures like swing, jab, throw etc.

    Earlier I could implement a game where I can tilt the phone using the accelerometer values. But how would I write the gestures? Like suppose if you do a punch/jab gesture with the phone, the game inside the phone should detect it as jab gesture and trigger an event.

    Is there any plugin for that? Else how can I write the gestures? What is the basic logic behind it?

    Thanks a lot!