Monday, December 26, 2011

PhysHand Preview

Just finished some incredibly entertaining work on a physics-manipulation hand, and it's a lot of fun to play with. Here's a video:



More important than being fun, with very little time spent with it you get pretty used to judging depth in the game, which is awesome. After working on it for an hour I wasn't having any trouble picking up a specific object, despite the lack of visual for where the hand is. I'll probably add a visual in eventually, but that I can use it without one is very encouraging.

Thursday, December 8, 2011

Decoupling

I just finished reading an article in this month's Game Developer magazine about decoupling systems.  In it, Niklas Frykholm talks about the methods and reasons to seperate systems in a game engine.  He has a very cool bit about duck typing in C++ with an array-of-structs design, which is really cool and I'm going to have to try.  He ends the article with a quip about how he wants APIs to be: C or barebones C++ interfaces that don't require inheritance.

That's probably the reason I like the sixense sdk so much; it exposes a small, simple interface to my code, and doesn't try to handle anything that isn't reading data from the controllers.  It's very easy and uninvasive to work with.

Speaking of, the project is still moving, albiet slowly.  Leo and I have both been very busy, but despite that I've gotten more done on the program I was demonstrating earlier, and got a second prototype going.  Right now I'm working on a "physics hand" to allow manipulation of objects by the player.  It's going to use the mass the object has in the Leadwerks physics system to determine if you can lift something, just drag it around, or if you can't budge it at all.  This should allow fairly intuitive integration into levels, as the mass should already be set for objects that have physics anyway.  Once it's done, I'll post another demo with it.

Graphics are importing just fine, but unfortunately we don't have many so far, so the next video might be white cubes again.  Maybe I'll add different color cubes.  And I promise I'll use CamStudio this time.