i want to realize a game like fruit ninja.but I have no good idea to detect the user slide end and slide multiple objects. there is touchPhase.Stationary and TouchPhase.Moved,but user may be Continuous sliding and finger don’t leave the screen.
var curPos : Vector3 = Vector3(touch.position.x,touch.position.y,0);
var moveRes : float = Vector3.Dot(lastPos,curPos);
if(moveRes > 0.90)
{
print("----this is one slice");
}
else
{
print("****** change the dir");
}
I use touch position to detect,but has no good result.I put the code in the function Update().may be should put in other function?
The website wholesale for many kinds of fashion shoes, like the nike,jordan,prada,****, also including the jeans,shirts,bags,hat and the decorations. All the products are free shipping, and the the price is competitive, and also can accept the paypal payment.,after the payment, can ship within short time.