Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Inkscape to create levels for my game. My problem is: I create rectangle and when I want to rotate it, it is changing the (x,y) position of the rectangle.

Here is a video of the coordinates changing in the object properties dialogue box. Why is this happening and how to fix it?

share|improve this question

migrated from Mar 24 '13 at 12:04

This question came from our site for professional and enthusiast programmers.

This is probably best on SuperUser, have asked for it to be moved. – halfer Mar 24 '13 at 11:17

The coordinates of an object is the lower left corner its bounding box (the smallest rectangle with edges parallel to the coordinate axes that contains the object). This bounding box is displayed in dashed lines and in your video you can see, how (and why) it changes when you rotate the square. If you rotate a square by a multiple of 90°, its coordinates do not change, since the bounding box is unaffected.

share|improve this answer
thank you.. Can you give me an example of how can i fix it thanks – user1644430 Mar 24 '13 at 20:15
how to get right coordinates from all this. Im parsing to create body so i need to get exact position – user1644430 Mar 24 '13 at 20:27
Could you specify, what exactly you need or consider to be “the right coordinates”? Whatever it is, you most probably will either have to evaluate the transformation matrix or convert the rectangle to a path (so you can directly access its nodes). – Wrzlprmft Mar 24 '13 at 23:18

that may because of the point of origin of the object set to left lower corner instead of its center, try if converting the object to a path helps

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .