hey there… im creating a project using libgdx 3d and im quite new to the whole thing…
model = modelBuilder.createBox(5f, 5f, 5f,
new Material(ColorAttribute.createDiffuse(Color.GREEN)),
Usage.Position | Usage.Normal);
instance = new ModelInstance(model);
camController = new CameraInputController(cam);
Gdx.input.setInputProcessor(camController);
anyways i have created a basic cube and got the camera to rotate around the cube…
if (Gdx.input.isTouched()){
vec.x = Gdx.input.getX();
cam.rotate(0, vec.x, 0, 0);
}
so know what i want to do is to know which face of the cube is facing the camera after the rotation is done… and if i can make each face clickable