Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualP0jahn

Posted 07 April 2013 - 03:41 AM

Hello

 

I think it's just a typo, but you are missing the type declaration at

 

Actually, it is not a typo, it compiles just fine.

 

How are you graphically rotating them?


I am using Slick2D and I use image.rotate(float degree). Not exactly sure how the actual rotation is done.

 

The collision detection is simply inconsistent. It does not detect properly.

 

I increase the rectangles rotation variable with 1 every frame, rotating it clockwise. This differ from yours, which rotates counter-clockwise. 

I tried decreasing my rotation variable with 1 every frame instead, making it rotate ccw, no luck.

 

Also wanted to note that rect.currX and rect.currY points to the unrotated top-left corner of the rectangle.


#2P0jahn

Posted 07 April 2013 - 03:41 AM

Hello

 

I think it's just a typo, but you are missing the type declaration at

 

Actually, it is not a typo, it compiles just fine.

 

How are you graphically rotating them?


I am using Slick2D and I use image.rotate(float degree). Not exactly sure how the actual rotation is done.

 

The collision detection is simply inconsistent. It does not detect properly.

 

I increase the rectangles rotation variable with 1 every frame, rotating it clockwise. This differ from yours, which increases counter-clockwise. 

I tried decreasing my rotation variable with 1 every frame instead, making it rotate ccw, no luck.

 

Also wanted to note that rect.currX and rect.currY points to the unrotated top-left corner of the rectangle.


#1P0jahn

Posted 07 April 2013 - 03:41 AM

Hello

 

I think it's just a typo, but you are missing the type declaration at

 

Actually, it is not a typo, it compiles just fine.

 

How are you graphically rotating them?


I am using Slick2D and I use image.rotate(float degree). Not sure exactly how the actual rotation is done.

 

The collision detection is simply inconsistent. It does not detect properly.

 

I increase the rectangles rotation variable with 1 every frame, rotating it clockwise. This differ from yours, which increases counter-clockwise. 

I tried decreasing my rotation variable with 1 every frame instead, making it rotate ccw, no luck.

 

Also wanted to note that rect.currX and rect.currY points to the unrotated top-left corner of the rectangle.


PARTNERS