This site requires JavaScript, please enable it in your browser!
Greenfoot back
8bitorangejuice
8bitorangejuice wrote ...

2013/7/3

Kinect - Detecting Jumping

8bitorangejuice 8bitorangejuice

2013/7/3

#
Hello, I need code inorder to detect if a person is jumping in a 'if() {
8bitorangejuice 8bitorangejuice

2013/7/3

#
Please help as soon as possible!
danpost danpost

2013/7/3

#
If there is no ground (or edge of window) immediately below the actor, then the actor is in the air (which is considered jumping). So. look for an object below the actor (at a vertical offset of half the actor's height). If the actor is allowed to walk on the bottom edge of the window (not always an actual object below the actor when standing or walking), then also check for a 'y' value of the world's height minus half the actor's height.
davmac davmac

2013/7/3

#
danpost, I think you missed the "kinect" part of the question :D 8bitorangejuice - I don't think there is anything that will directly tell you if someone is jumping, but consider what happens when you jump. First your head is at some height, then it goes up, then it goes back down. So, you could record the height of the head, and if it goes up significantly, assume they are jumping.
8bitorangejuice 8bitorangejuice

2013/7/3

#
Dav, can you help me with the code? I am creating a game for a school event and need help with the coding of kinect; I am a complete novice with kinect sensoring...
davmac davmac

2013/7/3

#
I don't have time to write code for you, sorry. If you try it yourself but it doesn't work I can look and suggest why.
You need to login to post a reply.