Skip to main content
2 of 2
deleted 92 characters in body
TheBroodian
  • 563
  • 5
  • 14

'Spring' physics

I'm trying to put together a struct or a method of some sort that will allow me to check the relative position between two objects, and if they're too far apart, apply a force that will draw them closer to eachother. I've read that you can achieve this by creating a 'spring', what that might look like in code?

TheBroodian
  • 563
  • 5
  • 14