1
Technical forum / Entity rotation around specific point
« on: May 10, 2008, 12:13:13 PM »
Hello everyone.
It seems that changing MyEntity.RelativeRotate property rotates object only around its corner (0, 0). I want to rotate Entity object around its center (or another custom point). How can it be done?
I see only one way - changing MyEntity.RelativeRotate and then moving entity (changing MyEntity.X, MyEntity.Y) so it is placed in the right place. But it is a bit complicated. Are there any easier ways to do it?
It seems that changing MyEntity.RelativeRotate property rotates object only around its corner (0, 0). I want to rotate Entity object around its center (or another custom point). How can it be done?
I see only one way - changing MyEntity.RelativeRotate and then moving entity (changing MyEntity.X, MyEntity.Y) so it is placed in the right place. But it is a bit complicated. Are there any easier ways to do it?