How would I add wrecking ball physics in a custom made physics engine

I want to add a swinging wrecking ball

The simple made physics engine located in each character

local Prime = Character.PrimaryPart
local Hum = Character:WaitForChild("Humanoid")
local Velocity = Vector3.new(0,0,0)
local Speed = 2

RunService.Heartbeat:Connect(function(dt)
	local drag = Velocity/40
    Velocity += (Hum.MoveDirection*Speed*dt - drag)
	CurrentPosition += Velocity
    Prime.PositionValue.Value = CurrentPosition
end)

image