Great, I got it to work now. Thank you for your fast and accurate help!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu Camera cam = world.getCamera();
cam.setPosition(20, -60, 20);
cam.lookAt(game.getFields().getFirst().getTransformedCenter());
public class Field extends com.threed.jpct.Object3D
public Field(int posX, int posY, Field next){
super(Primitives.getCube(10));
setXY(); //<-stuff for the getX / getY functions
matrix.translate(getX()*30,0 , getY()*30);
this.setTranslationMatrix(matrix);
}
for (com.theDiceGame.Field f : fields){
f.strip();
f.build();
System.out.println("Translation: "+f.getTranslation());
world.addObject(f);
}
Translation: (0.0,0.0,0.0)
Translation: (30.0,0.0,0.0)
Translation: (30.0,0.0,30.0)
Translation: (0.0,0.0,30.0)
Page created in 0.067 seconds with 13 queries.