Jump to content
  • Advertisement

Martin Rohwedder

  • Content count

  • Joined

  • Last visited

Everything posted by Martin Rohwedder

  1. Martin Rohwedder

    Experienced programmer recruiting team members

    I am a hobbyist game developer from Denmark. I am fluent in the Java programming language, and has also worked with C# quite a lot (mainly Unity C#). I am mainly using Java (and LibGDX) for game programming, but have also worked in Unity C#. I am mostly a coder, but I have also done a little 2D pixel art, though I am not an artist. I am an easy-learner, and I am beginning to think that doing game development alone, can be quite cumbersome and boring. Therefore I think it could be fun, to make a game project with some other dedicated developers. My favorite game genre is simulation/management (tycoon) games, where you mainly have to run a business and make it grow. I also like the strategy game genres, and the RTS genre. Besides all that, I am 29 years old, and is doing a study to become a teacher in the danish middle school. Hope to hear from you :)
  2. 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 -    Hopes anyone can help me :)
  3. Martin Rohwedder

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

      Is it possible to see the source code (I also try learn unity), so I can learn some of the basics of your implementation??
  4. Martin Rohwedder

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

    Hi all   I have solved the problem by attaching a pivot node to the cube, and then translate the cube according to the pivot point.   Normally the rotation is done in the center of the object, which is also the case witht the pivot point, but by translating the object relatively to the pivot point, then I was able to move the center of this rotation to the edge of the cube.   I got some good help from this post - http://gamedev.stackexchange.com/questions/71445/how-do-i-make-a-cube-move-by-rolling   What I did was the following. Box box1 = new Box(1,1,1); Geometry boxGeom = new Geometry("Box", box1); Material mat1 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat1.setColor("Color", ColorRGBA.Blue); boxGeom.setMaterial(mat1); //attach the cube to the pivot node pivot = new Node("pivot"); pivot.setLocalTranslation(0.0f, 0.0f, 0.0f); rootNode.attachChild(pivot); // put this node in the scene pivot.attachChild(boxGeom); //Translate the box so the pivot node is at the bottom right edge of the box boxGeom.move(-1.0f, 1.0f, 0.0f); Then I could rotate it along to z-axis in the simpleUpdate method. @Override public void simpleUpdate(float tpf) { //rotate along z-axis pivot.rotate(0.0f, 0.0f, -0.001f); }
  5. Martin Rohwedder

    The No Twinkie Database!

  6. Martin Rohwedder

    I Have a Game Idea!

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!