if(isRightArrowDown) // when player push right arrow, player is going right
{
angle+= 0.5f
}
some code
.
.
.
glRotatef(angle,0,0,1);
if(isRightArrowDown) // when player push right arrow, player is going right
{
angle+= 0.5f
}
some code
.
.
.
glRotatef(angle,0,0,1);
public void render(){GL11.glPushMatrix();GL11.glTranslatef(positionX,positionY,0.0f);GL11.glScalef(0.0055f, 0.0055f, 0.0055f);GL11.glRotatef(xRot, 0, 0, 1);GL11.glRotatef(yRot, 1, 0, 0);textura.bind();model.render();GL11.glPopMatrix();}