I am adding impulses to cubes based on mouse position, but I am having trouble figuring out what math needs to be done to get them to work the way I want.

I have already done 0-vector to make it so the mouse is pushing the cube instead of pulling, but I am trying to make it so that the closer the mouse is to the cube, the stronger the impulse is.

Can someone help me figure out how to do this? word counter VidMate

Thanks in advance.