Unity + kinect + throwing Objects

780 views
Skip to first unread message

13Strider

unread,
Feb 16, 2012, 1:26:07 PM2/16/12
to unitykinect
Hi Guys,

I'm Developing a game that allows the user to pick an object and throw
it at a target,
I have this working using a mouse, however not I want to use kinect to
perform these actions.

What do you guys think is the proper way of going to this?
What I was thinking was having a box collider on the user hand and the
Object , when these objects collide I would attach the object to the
users hand,
for throwing maybe I would a object above users head and when the
users hand collides with it I would throw the object.
Is there a way to get the force of arm throw? Is this the best way to
do this?

Cheers,
Sam

Ivan Terra

unread,
Feb 27, 2012, 9:10:45 AM2/27/12
to unitykinect
Hello I'm making a game for my Masters where I need to throw objects.
If you have any solution share width me=)
I found this game
http://www.interhacktive.org/1/post/2011/07/piedoch-a-free-kinect-pc-...

Predrag Popović

unread,
Mar 2, 2012, 11:58:30 AM3/2/12
to unitykinect
Hi,

I've started experimenting with kinect and unity and I'm having
trouble in triggering or colliding my avatar with other objects.
I've looked into matrix in unity reference and wrote some scripts but
obviously I'm doing something wrong.
Basicly I've an avatar I assigned it as riggedbody and I've box
collider which has simple script something like (if
(Collider.tag(("avatar") { print("something")} )) but somehow
something is missing my avatar never collides with box collider. Any
suggestions , help ?

Predrag Popović

unread,
Mar 2, 2012, 11:58:43 AM3/2/12
to unitykinect
Hi,

I've started experimenting with kinect and unity and I'm having
trouble in triggering or colliding my avatar with other objects.
I've looked into matrix in unity reference and wrote some scripts but
obviously I'm doing something wrong.
Basicly I've an avatar I assigned it as riggedbody and I've box
collider which has simple script something like (if
(Collider.tag(("avatar") { print("something")} )) but somehow
something is missing my avatar never collides with box collider. Any
suggestions , help ?

On Feb 16, 7:26 pm, 13Strider <sam.sannand...@gmail.com> wrote:

13Strider

unread,
Mar 2, 2012, 12:19:00 PM3/2/12
to unitykinect
Assign the rigidbody to the hand of your Avatar,
Im working on the same thing and I used colliers at first but now I
created a gesture and upon gesture trigger I release the ball.
let me know if that works.

Deron James

unread,
Aug 13, 2013, 10:50:32 AM8/13/13
to unity...@googlegroups.com, sam.san...@gmail.com
I have a thesis which is kinect basketball shooting game, pls help me. Share me your codes

Ted Strauss

unread,
Jan 9, 2014, 2:16:06 PM1/9/14
to unity...@googlegroups.com, sam.san...@gmail.com
hi 13strider,
i'm working on kinect object throwing too.
it sounds like you found a method that worked for you. 
i guess it's 2 years ago already, but if you could share a bit more detail about how it works, it would be a big help to this group.
Maybe a screen shot of your unity object inspector.
or a quick screencast showing how you did it?
cheers

Timothy Graupmann

unread,
Jan 9, 2014, 2:24:55 PM1/9/14
to unity...@googlegroups.com, Timothy Graupmann, sam.san...@gmail.com
In my case I put an axe in the hand with a box collider. As you can see it's not super accurate where I should have used a mesh collider, or put a more specific collider around the tip of the weapon. It's going to be more accurate than throwing a collider around the entire avatar. And really each body part should have a separate collider so you can yell "ow my leg!".

Although this isn't kinect specific, it applies to the same mechanim setup.

~Tim Graupmann


--
You received this message because you are subscribed to the Google Groups "unitykinect" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitykinect...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages