Tag Info

New answers tagged

0

Using following code, I can able to get success in this doubt. Camera camera = GameHUD.this.getCamera(); float[] position = camera .getCameraSceneCoordinatesFromSceneCoordinates(GameManager .getInstance().getMainCharacter().getX(), GameManager ...


0

A vertex is not just a spatial position, but a whole bag of attributes. A position p is a point in some spatial space or a homogeneous coordinate. A texcoord tc is a point in texture space. A normal n is a bivector, and so on. If you represented a vertex with multiple indices, a vertex V_k could be represented by a tuple of indices {p_a, tc_b, n_c}. In a ...


0

Before using the coordinates of your touch event, you need to scale them to your camera dimentions. You can try this code : OrthographicCamera cam; Sprite sprite; // your sprite Vector3 touchPos; // creates a vector3 object for our touch event touchPos = new Vector3(); cam = new OrthographicCamera(); cam.setToOrtho(true, 250, 120); public void ...



Top 50 recent answers are included