Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: RolfBertram.com on August 31, 2011, 12:25:54 PM

Title: iPad MultiTouch Sample Project?
Post by: RolfBertram.com on August 31, 2011, 12:25:54 PM
Looking for a sample project that uses MultiTouch on iPad, where several objects can be touched with several fingers, and all do their own state change.

I guess this requires something with Touch, Raycast, and storing all the finger touch positions in separate variables. But it's totally confusing to me so far, and I was hoping this was only requiring a simple action, like "This object is being touched", "Touch began", "Touch ended", and such.
Title: Re: iPad MultiTouch Sample Project?
Post by: Damian on September 01, 2011, 11:27:36 AM
You need only keep track of the finger_ID.
Then you can use that in the actions and have MultiTouch.
So Basically you save the finger_ID when you check the touch event for the first time.
Then using this ID on the action.
When you touch the screen with one more finger you get an new finger_id.
Title: Re: iPad MultiTouch Sample Project?
Post by: jeanfabre on September 01, 2011, 11:41:32 AM
Hi,

 The best starting point to understand how you deal ( one way at least) with touch is the sample provide by Unity on their website assets section. Really helpful

http://unity3d.com/support/resources/example-projects/iphone-examples (http://unity3d.com/support/resources/example-projects/iphone-examples)

 Bye,

 Jean