microsoft / RoomAliveToolkit

Other
714 stars 191 forks source link

Interacting with Game Objects #78

Open lilfighterr opened 6 years ago

lilfighterr commented 6 years ago

Hi,

Is there a way to interact with the game objects on the scene? Ex. Using your hand to push a cube. I tried fiddling with the depth mesh script and using a collider but I can't get it to work.

Thanks.

thundercarrot commented 6 years ago

Creating a collider for a dynamic mesh is generally going to be too difficult (a height map is the exception-- I'm not sure if Unity has a means of handling that case). If you have Kinect body tracking working, you could place a sphere at the hand position and push that around.

lilfighterr commented 6 years ago

Thanks, I'll try those out and see what I can do. Also, is there a way to do live depth using the unity toolkit such that the projection is corrected even when an object is put in the projection space? (Like in the projection mapping sample) I thought the depthmesh would handle it but it doesn't seem to be doing so.

Thanks.

thundercarrot commented 6 years ago

The Kinect game object has a 'live' option. Have you enabled that?

lilfighterr commented 6 years ago

On the kinect object, these are the options:

image

And on the depth mesh: image

I don't see a 'live' option anywhere. Here is the hierarchy in the scene: image