Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#Actualcrueltiesladle

Posted 02 June 2014 - 05:31 PM

I'm working on a game in unity and I've stumbled upon a physics problem that I don't really understand how to fix.

 

wmb4ma.png

 

In this image, there are objects A and B.  Let's just say they both have a mass of one.

 

As object A approaches object B, and the max distance has been breached, I want object B to attract quickly to object A's Min distance and then simply stay still (unless opposing outside forces choose to intervene).  

 

This way when the object gets close enough to other objects it can affect, it will pick them up and bring them along on the journey.

 

Would this problem be solved if I used a simple rigid spring thats resting position is the min distance?

 

Or is there another better way for solving this problem like giving a force to both objects so that their equlilibrium would be met when the min distance is achieved.  

 

So far what I've tried causes weird orbits and jitter.


#1crueltiesladle

Posted 02 June 2014 - 05:31 PM

I'm working on a game in unity and I've stumbled upon a physics problem that I don't really understand how to fix.

 

wmb4ma.png

 

In this image, there are objects A and B.  Let's just say they both have a mass of one.

 

As object A approaches object B, and the max distance has been breached, I want object B to attract quickly to object A's Min distance and then simply stay still (unless opposing outside forces choose to intervene).  

 

This way when the object gets close enough to other objects it can affect, it will pick them up and bring them along on the journey.

 

Would this problem be solved if I used a simple rigid spring thats resting position is the min distance?

 

Or is there another better way for solving this problem like giving a force to both objects so that their equlilibrium would be met when the min distance is achieved.  

 

So far what I've tried causes weird orbits and jitter.

 

 

 

 


PARTNERS