Rotate part relative to moving vehicle

I’m using A-Chassis and I’m trying to make the reel on my harvester rotate while the vehicle moves.

I set up a WeldConstraint between the harvester and the reel to keep it attached, and added a HingeConstraint with Attachment0 on the harvester and Attachment1 on the reel.

I set the HingeConstraint’s ActuatorType to Motor, gave it a nonzero AngularVelocity, and a large MotorMaxTorque, but the reel still doesn’t spin at all. I also tried other methods like applying AngularVelocity directly, but that just causes the entire vehicle to flip.

How can I properly make a part rotate relative to a moving A-Chassis vehicle without breaking the physics?


image

Ended up manually moving the reel to the harvester

repeat task.wait() until game:IsLoaded()
task.wait(2)

local reeler = script.Parent
local reelerPart = workspace["AC6.52S2 - Mobile"].Body.SM_Veh_Harvester_01__1_.ReelerPart

local rotation = 0
local spinSpeed = math.rad(90)

game:GetService("RunService").RenderStepped:Connect(function(deltaTime)
	rotation = rotation + spinSpeed * deltaTime
	reeler.CFrame = reelerPart.CFrame * CFrame.Angles(0, 0, -rotation)
end)

1 Like

that was actually the solution!, also if you are not sure what to do, you can check with chat gpt, when i get roubled i check with it and actually its very good, but the only problem its that you need to explain with MAXIMUM details :sweat_smile:

1 Like

I was actually using ChatGPT for over an hour and it couldn’t come up with a good solution so I ended up making that myself. It’s really smooth and is the exact behavior I was looking for.

1 Like