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

valorique's icon

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.

chrisoconnor's icon

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 ;)

Rob Ramirez's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

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.