Hello there! I am attempting to script a bomb reloader, but Im having some problems. Practically, my bomb reloader needs to be able to turn his middle part up and down, while the back stays still and the front moves but doesnt rotate.
Heres my image
The front part, where the driver is seated, doesnt move or rotate.
The middle squiggly part rotates up and down
The front part can move up and down based on the middle parts rotation.
For this, would I have to use physics constraints? Or should I just resort to tweening? I also need to be able to turn the middle part how many degrees I want, so unfortunately pre-made animations are useless.
You could create a part inside of the bomb reloader, then weld the middle part to the part and then just tween the part that is inside of it, and it should rotate with it (Make sure the middle part is not anchored)
The best solution I can think of is putting an hinge in the middle, calculate the velocity of when it turns (speed, force etc), and tween the HingeTargetAngle I guess, I’m not a builder or anything this is just an idea
For the Up-Down movement you should use tweening. But if your turret would rotate 360 degrees or more I’d recommend using Motor6D’s, and I’ll explain why Motor6D’s and not hinges. If your turret rotates more than 360 degrees the hinges will be of no help because their max is 180 degrees and if it goes more than that it will just go back to 1 and the turret would turn all the way back. You could ofcourse still use tweening to do that, but in my opinion I don’t recommend using physical constraints for that type of stuff.