Jumping without physics. [Solved]

I’m trying to do Qbert. I modeled the world and the player, now i need the player to jump from cube to cube, but i think it can be done without physics. I thought doing it through MotionPath or doing an animation in Maya. I’d like some tips. Thanks.

animation with bones?

Regarding the movement? If you want the movement, you can do the following:


  1. Check the player’s position.
  2. Use -(pos * pos). This creates a curve.
  3. Check for any collisions.
1 Like

@memonick Do you check collisions to stop the animation? And, last question, do I manage the animation in the update loop, or in some control/AppState?

Sorry if they’re noob questions, but i really am new to jME and programming 3d stuff. Thanks in advance.

alessiole said:
@memonick And, last question, do I manage the animation in the update loop, or in some control/AppState?

Use a control on the spatial.

@alessiole, You check the animation to stop it. But really, you shouldn’t ask me. What I used was logic and applied mathematics. I am like you - still new to JME.

Ok i think I can go on doing some try. Thanks to everyone!

it’s nothing :wink:

no collisions needed.



Use com.jme3.math.Spline, you just tell it from what positions you want it to pass and it does.



Point A : player start position.

Point B : player end position.



All points between A, B define how it should move / jump. Sorry i havent used jme3’s math api so i cant give more details.

1 Like