This project has moved and is read-only. For the latest updates, please go here.

Kinect and Farseer question

Topics: User Forum
Jul 31, 2012 at 2:56 PM


I am trying to make an air-hockey game where I control the pad by a kinect sensor, but I have run into some problems. I tried to set the position of the pad based on the position from the kinect camera but the physics engine does not like that very much, I get strange behaviuors. So I am guessing that is not the way to do it. Does anyone have an idea how to accomplish this (so that collision responses will be correct)?



Jul 31, 2012 at 3:32 PM

Apply forces when movement is detected, are you using SetTransform?

Aug 1, 2012 at 1:56 PM


Is this still possible if you want a one-to-one relationship between the position of your hand and the position of an object?

Does something like this work:

Calculate the force based on mass and acceleration of the object and then check if the new position is equal to the position given by the kinect sensor.

No I am not using SetTransform, I use the XNA framework.


Aug 1, 2012 at 3:19 PM

SetTransform is a method in Farseer that allows you to directly move a body. If you call it like this, the physics engine will acknowledge it. 

Aug 1, 2012 at 3:28 PM

Ahhh, excellent, thanks a lot.