local P={}local G={__index=P}function P.new(P,w,U,z,i,A)local I={}I.position=P I.velocity=w I.target=U I.stiffness=z I.damping=i I.precision=A return setmetatable(I,G)end


local spring = {};
local spring_mt = {__index = spring};

function spring.new(position, velocity, target, stiffness, damping, precision)
	local self = {};
	
	self.position = position;
	self.velocity = velocity;
	self.target = target;
	self.stiffness = stiffness;
	self.damping = damping;
	self.precision = precision;
	
	return setmetatable(self, spring_mt);
end
