playMaker

Author Topic: iPad MultiTouch Sample Project?  (Read 6909 times)

RolfBertram.com

  • Playmaker Newbie
  • *
  • Posts: 1
iPad MultiTouch Sample Project?
« 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.

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: iPad MultiTouch Sample Project?
« Reply #1 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iPad MultiTouch Sample Project?
« Reply #2 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

 Bye,

 Jean