So through some vector math I’m able to get the Leap coordinates to Blender space in the game engine but I’m wanting to extend this functionality to the main interface or at least to a rig in the BGE and make a boxing game or something like that.
But if I understand the script correctly its making a new object for every reading to display the object instead of making an instance and just updating its x and y. I am just wondering what you would do as far as making the readings come out in another format in which I would be able to interact with bones. (I hope I worded that right) Anyways this might not be the right board for a python / BGE question but its worth a shot.
Im hoping that by controlling bones i could do motion tracking for at least the hands animation of a character. Or cue demolitions for an animation by playing the same speed in the BGE/.
just to help make the script a little more clear the “HandModel” and “FingerModel” are pieces of geometry on another layer.
Just to say, I’m looking into integrating the Leap into the BGE too. I’ll no doubt be running into similar problems to you shortly. I’ve some Python experience so might be able to help out on that front.
I’m working on a Windows 7 64 bit machine. What OS are you using?