Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What's the best way to rotate several objects around the same point?  (Read 1908 times)

0 Members and 1 Guest are viewing this topic.

normaldeveloper

  • Newbie
  • *
  • Posts: 3
    • View Profile
I have two RectangleShape objects and I want to rotate them by some angle around the same point. What's the best way to do it?

fallahn

  • Hero Member
  • *****
  • Posts: 504
  • Buns.
    • View Profile
    • Trederia
Re: What's the best way to rotate several objects around the same point?
« Reply #1 on: September 14, 2016, 04:55:20 pm »
Probably with a transform hierachy, where the point of rotation is the root/ parent transform of the two ResctangleShapes

Jonny

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Email
Re: What's the best way to rotate several objects around the same point?
« Reply #2 on: September 26, 2016, 04:19:27 pm »
Alternatively, set both their origins to the same point (as the origin doesn't necessarily have to be within the shape bounds) then rotate them as you would normally.

 

anything