Game Development Community

Distance between touch points

by john m ingato · in iTorque 2D · 01/24/2010 (8:33 pm) · 3 replies

Hi, I know 1.3 supports multitouch functions. I was wondering how I could could get the distance between the two points that a user is touching.

Thanks

-John

#1
01/25/2010 (11:48 pm)
there is the console function t2dVectorDistance, that will do it. Or are you looking for something else?
#2
01/26/2010 (12:09 am)
Well' yes and no. That will get me the distance if I know the position of both touches, but it seems that callback only include a single x and a single y position. How do I get both of them though?
#3
01/26/2010 (3:25 am)
I figured it out. When %touchCount is 2 the the %touchX and %touchY have multiple values