- Home /
Question by
HS-Emden · Jun 20, 2013 at 03:00 PM ·
guicursorkinectworldtoscreenpoint
Custom Cursor with Kinect Wrapper
Hello, i am trying to build a little custom Cursor that follows my right Hand. I thought this would be a simple thing to do with the Kinect Wrapper.
Kinect and the little Rainbow Man from are both working fine.
Now i am trying to convert the Position from the Right Hand transform to my Screen Space to visualize a Cursor.
This is the Code for my Cursor. It is somehow working but the Position of my Cursor is way offset from what my Camera is showing.
var target : Transform;
var driven : Transform;
var cam : Camera;
function Update () {
var viewPos : Vector3 = cam.WorldToScreenPoint(target.position);
driven.position = viewPos;
}
Does anyone know what i am doing wrong here?
Comment