We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, It's the first time I use Geomerative library, and I'm trying this for rotating rectangles collision detection. It works as expected, but I have a little question on RShape.translate(). I see it translate only relative, so i cannot simply put a RShape.translate(100,50) into the draw() code, because the rect will run away in a moment...
Is there a way to have an absolute positioning of a RShape?
thanks.
Answers
Then, I also need to know the position of the translating & rotating rectengle center. i have tried rect1.getCenter().getX() but it doesn't work... any suggestions?
Thanks again.
I've found a little turnaround for my first Q.
I don't like it so much, but if there isn't any other solution it will be useable..
any other suggestion will be much appreciated!
Thanks.
EDIT: In fact it doesn't work well, meaning that after a lot of movements the real position is lost.
Is there a way to translate to an Absolute position? or anybody knows about another library that can do what I need?
any help will be much appreciated.