so i’m trying to make a cannon to put on a moving ship. but i gotta unanchor the cannon first, so i need to weld it. however, i’ve got some problems with the welding for over a day now.
Lets say Part A is welded to Part B. Is there any way to rotate Part A without rotating Part B as well? Because whenever i try to rotate the cannon, the carriage rotates too.
Clip 1 is the anchored cannon
Clip 2 is the unanchored cannon
what you’d wanna do to properly rotate the cannon is modify the C0 or C1 property of the weld that’s connecting the cannon to the carriage. that way you change the offset between the parts and thus change/rotate part A without changing/rotating part B
(assuming you’re using a Weld and not a WeldConstraint)
As @bjarkibjarki said, you need to weld the carriage to the ship (or the baseplate in your example).
If you want to raise and lower the cannon barrel then have a weld between the barrel and the base and change the C0 & C1 orientation.
If you want to rotate the base then you can do the same with that weld.
Another option is to use Motors and change the DesiredAngle, or you could use HingeConstraints set to Servo for the exact same thing.
And please, if you’re asking for Scripting Support it would help us out if you actually posted your script.
So I interpreted that he wanted the cannon to rotate without rotating the carriage as well. A BallSocketConstraint would achieve this as well if you learn how they work