How to move object

Hello,
I’m working on a project. I have to make a kapla application. I have problem when trying to move a kapla. I can just move it using his x, y coordinates. I can’t manipulate the z coordinates. I really need help.
Sorry for my english.

uh :-? some code might be useful

This is my where i try moving the brick :
[java]
private AnalogListener analogListener = new AnalogListener() {
public void onAnalog(String name, float value, float tpf) {
// Reset results list.
CollisionResults results = new CollisionResults();
// Convert screen click to 3d position
Vector2f click2d = inputManager.getCursorPosition();
Vector3f click3d = cam.getWorldCoordinates(new Vector2f(
click2d.x, click2d.y), 0f).clone();
Vector3f dir = cam.getWorldCoordinates(new Vector2f(click2d.x,
click2d.y), 1f).subtractLocal(click3d);
Ray ray = new Ray(click3d, dir);
// Collect intersections between ray and all nodes in results list.
rootNode.collideWith(ray, results);
if ((results.size()>0)&&(results.getCollision(0).getGeometry().getName().equals(“brick”))){
if (name.equals(“drag”)) {

				brick = (Brick) results.getCollision(0).getGeometry();
				brick.setMass(0f);
				Vector3f location = results.getCollision(0).getContactPoint();
				brick.setLocalTranslation(location);
				//brick.getControl(RigidBodyControl.class).setPhysicsLocation(location);
			}
		}
	}
};

[/java]
Thanks for helping.