Tag Info

New answers tagged


I figured out the solution. The problem was that Listeners would work only after we set a bound to our Actor. I hadn't set any bounds, so it was not taking the touches. Now I set the bounds in the draw() method(so that it will get updated each time the actor moves) and it is working like a charm. @Override public void draw(Batch batch, float parentAlpha) { ...


Let's rephrase your question: Given a rotation R, and a position p, we would like the rotated point p' to lie along the Z-axis (also known as the center of the camera). For this, we can use linear algebra: Compose the rotation matrix R from your euler angles. Solve the problem Rd = [0 0 1]^T, or | 0 | d = inv(R) | 0 | | 1 | d is ...

Top 50 recent answers are included