Forums > MaxMSP

How can I make a 3-D object jump using keyboard controls?

December 1, 2011 | 8:27 pm

I am creating a mini 3-d game using Max6 Jitter. I’m having trouble making an object jump, so far, my object, when using the jump control, the object simply skips to a position higher than it was and falls down, using jit.phys. How can I actually make it jump up where you see it rising up and then down.


December 1, 2011 | 10:11 pm

Hey valorique,

Basically, you want to have a look at jit.anim.drive.

It allows you to send a message to a gl object to move in the animated style you’re after, instead of simply appearing there.

Haven’t tried this with a jit.phys.object yet, let me know how you get on ;)


December 1, 2011 | 10:33 pm

jumping a phys.body is simply an impulse message in the direction you want to jump.

take a look at this patch.
if this isn’t what you’re looking for, please provide more information, or better yet, a patch showing what you’ve tried.

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)