|
I'm curious about replicating the following behavior in Unity: http://www.youtube.com/watch?v=syy2xt3CwHg When the finger is in a specific area of the screen, a game object is spawned. It follows the finger gestures and when the finger is released, the gameobject is deattached. If the finger is release with previous speed (aka swipe) the gameobject is thrown. Can i do this with the stock library or should i search for something in the Unity Store?
(comments are locked)
|
|
Stock library is perfectly fine for that. Just use the regular Input.touches[]. Though I would avoid using touchPhases since they are somewhat slow and unreliable. Either keep track of the pressed/released state yourself or for something a bit more fancy, you could use http://technology.blurst.com/iphone-multi-touch/ . Do you know any examples of this behavior or something similar?
May 28 '12 at 03:16 AM
vinny2
Let's see... This is untested and 10-min-hack-something-together code (I haven't Unity installed an that machine here), but it should give you an idea of what you're after
May 28 '12 at 03:44 AM
hathol
(comments are locked)
|
