# Martin Rohwedder

Member Since 29 Jan 2014
Offline Last Active May 07 2017 05:15 AM

### In Topic: Experienced programmer recruiting team members

03 May 2017 - 03:29 AM

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

### In Topic: JME3 - How to roll-move a cube along the game world

12 March 2014 - 04:04 AM

Nice work.  I did something similar with a coin-like object (nearly flat cylinder) in Unity.  It's a bit simpler since it's round, so it's just a matter of making it rotate towards the direction it wants to go.  Though in my case, I wanted to have it interact with the physics, so I actually gave it an impulse on the opposite edge of the direction it wanted to go.

You can see my implementation in action here.

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

### In Topic: JME3 - How to roll-move a cube along the game world

08 March 2014 - 03:38 PM

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