Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Martin Rohwedder

Member Since 29 Jan 2014
Offline Last Active Oct 17 2014 09:30 AM

Topics I've Started

JME3 - How to roll-move a cube along the game world

06 March 2014 - 04:26 AM

Hi all

I am trying jMonkeyEngine out and is trying to learn how to make some small games with it. I am having a problem. I have a simple rectangular cube which is my intention that the player should be able to roll around the gameworld.

When he presses the arrow keys the cube should make a roll towards the way the user pressed the array key, so if he presses the right arrow key, the cube rolls 1 WU to the right.

The problem is not to move the cube, which I can du with the move() method, but my problem is how I make this rotation effect so it doesn’t look like the cube is moving to the destination, but is actually rolling.

The rolling effect should be like the cube in this game - https://www.youtube.com/watch?v=aml5FoyyKLo

 

Hopes anyone can help me :)


PARTNERS