Tagged Questions
0
votes
2answers
488 views
Rotating a Quad around it center
How can you rotate a quad around its center?
This is what im trying to do but it aint working:
GL11.glTranslatef(x-getWidth()/2, y-getHeight()/2, 0);
GL11.glRotatef(30, 0.0f, 0.0f, ...
1
vote
1answer
179 views
Rotating a cube using jBullet collisions
How would one go about rotating/flipping a cube with the physics of jBullet?
Here is my Draw method for my cube object:
public void Draw() {
// center point posX, posY, posZ
float ...
2
votes
3answers
317 views
OpenGL Get Rotated X and Y of quad
I am developing a game in 2D using LWJGL library.
So far I have a rotating box. I have done basic Rectangle collision, but it doesn't work for rotated rectangles.
Does OpenGL have a function that ...
1
vote
1answer
1k views
Rotation of images in Slick2D
I have have a rotation problem in the Slick2d library, the image is just not rotating (ie I set a rotation but no result is shown). Here is the rotation code:
if (input.IsKeyDown(Input.KEY_LEFT)) {
...
2
votes
3answers
3k views
LWJGL glRotatef() without rotating axes?
Okay so, I noticed when you rotate around an axis, say you do this:
glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
That will rotate things 90 degrees around the x-axis. However, it also sort of rotates the y ...