Tagged Questions
2
votes
0answers
72 views
Libgdx sprite rotation (image quality)
This one is probably really simple but I didn't find a solution.
I'm trying to create a widget (speedometer) with libgdx.
For the arrows I'm using the setRotation() function.
But when the image is ...
0
votes
2answers
139 views
How to I rotate a triangle by dragging the mouse in libGDX?
More specifically, I have rotation working in a way I don't like as follows:
//Draw the triangle using this draw method
//batch.draw(texture, x, y, ...
1
vote
2answers
204 views
Render rotated rectangle inside other rectangle bounds using Libgdx
I have this code to generate a red rectangle inside a grey rectangle:
new Rectangle(grey_rectangle_position_x, Game.SCREEN_HEIGHT/2-Rectangle.height/2,0);
This code makes the following:
Now, I ...
0
votes
0answers
114 views
Fling and Spin an Object with Touch
For making a bottle to spin, I focused first on the touch dragging via input processor interface. It's a bit unresponsive since when I rotate clockwise or counter-clockwise as long as my finger ...
0
votes
0answers
342 views
Problem with rotation in Box2D
I have my sprites and my bodies, and my problem is the following:
I rotate a sprite that doesn't have a body, but it has a projectile as a child, and that projectile has a body attached to it, and ...