Making a Part Orbit Another Part

Hello! I’m currently trying to create an orbiting functionality that will allow Part A to orbit on a circular axis around Part B, and I’d like to only use constraints, if possible. I’ve tried using HingeConstraints, but failed to understand how to fully use them for this system after watching a few tutorials. And BodyGyro seems to only rotate parts on their own orientation, not an actual orbit on an axis. I have run out of ideas on how to create this, so any help would be appreciated. Thank you!

3 Likes

my idea would be to

  • create an invisible/non-collidable part (part C)
  • create an AlignPosition so part C is always inside part B
  • create a AngularVelocity or similar mover/constraint to part C for the orbit speed
  • create an offset attachment for the orbit offset and create an AlignPosition so part A is always inside that attachment
2 Likes


here’s what it looks like in action

2 Likes

Alright, i’ll give it a try (30)

1 Like

I understood most of that, I was able to make Part C spin, but I didn’t get the last bit with the offset attachment. It keeps moving Part A into Part C, I don’t know where to parent the offset attachment or alignposition, could you explain a little more?

1 Like

Nevermind, I did it a different way using CylindricalConstraints and WeldConstraints and it worked.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.