--  This lua script is reusable for anything and anyone!
-- I hope she made lots'a spaghetti!

-- NOTE: speed and distance will *NOT* change if you scale the object

function A_ItemBob(actor)
	local min_timer = 200*FRACUNIT*(leveltime*2 / 1)

	local i_speed = 1 -- changes how fast the object moves
	local i_dist = 1 -- changes how far the object travels upwards 

	local i_height = (1*sin(i_speed*min_timer))/6
	actor.momz = i_height

end
