Skip to content

Physics and Multitouch

by Colin on November 13th, 2009

ball_01

I've been reading a lot about multi-touch with Flash within the past year and, needless to say, was excited when Adobe announced that CS5 will enable multi-touch directly through Flash. I have a lot of questions about how that willl work and like other API's if it'll be as easy to plug in hardware devices (ie. iPhone, Wii Remotes, etc).
Over the past two weeks I've been doing some tests with TUIO and MSARemote. I wanted to test with Processing because I've been having some tracking problems with Flash (still trying to figure out why it's so jumpy) and Processing is a lot faster.

Also, I've been working on creating a new portfolio site and while brainstorming for it, I decided to do a few physics tests to try Gravity and Repulsion techniques.

ball_02

As you can see above, the bouncy balls was my first physics test. In that image, I have 12 balls bouncing around, with the yellow ball being what I was dragging with my mouse.

ball_03

Physics Test 1 w/ Multitouch from Colin Duffy on Vimeo.

Here you can see I implemented TUIO into my project and can control multiple balls with my fingers over my iPhone. I also added a debug mode (turning on and off through double-tapping the iPhone screen) which you can see here. I used TUIO's sample code to display the trail of each finger's movement.

gravity_01

gravity_02

gravity_03

Physics Test 2 w/ Multitouch from Colin Duffy on Vimeo.

This next test involved a gravitational pull with particles that repel off one another. As you can see from the second image, I implemented multi-touch to add points from more than one direction. There's still a few things I'd like to do with this that I'll continue to work on.

From → Processing

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS