multi touch
fullviewmedia
Member Posts: 92
Hi all,
I am working on a game where I need to drag blocks on to the scene from the side and then use multi touch to rotate the block. I have seen an example somewhere but with no breakdown or instructions.
I'd even settle for touching middle of block to move, touch either end to rotate.
Any ideas, pulling hair out....
Thanks
John
I am working on a game where I need to drag blocks on to the scene from the side and then use multi touch to rotate the block. I have seen an example somewhere but with no breakdown or instructions.
I'd even settle for touching middle of block to move, touch either end to rotate.
Any ideas, pulling hair out....
Thanks
John
Comments
Thanks
John
vectorToAngle
Usage: vectorToAngle(x,y)
Find the angle relative to the origin, (0,0), given an X and Y coordinate. You can include an offset,(x',y'), to find an angle relative to the offset.
e.g. vectorToAngle(x-x',y-y')