# File Springz.rb, line 164 def Springz.uncollide(o1,o2) #p o1,o2,' ' loc1 = o1.springz_loc loc2 = o2.springz_loc h,dx,dy = loc1.distance_dx_dy(loc2) r3 = -(r2 = o1.springz_radius + o2.springz_radius) return if dx>r2 || dx<r3 || dy>r2 || dy<r3 d = r2 - h return unless d>0 r = d/(h*2) dx*=r; dy*=r o1.move_to(loc1.x-dx,loc1.y-dy) o2.move_to(loc2.y+dx,loc2.y+dy) end