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

Dec 1, 2011 at 8:27pm

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

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.

#60395
Dec 1, 2011 at 10:11pm

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

#217332
Dec 1, 2011 at 10:33pm

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. –
#217333

You must be logged in to reply to this topic.