You can attach the physics object to another physics object via a joint, and move one like so:
also make sure the objects don't collide with each other.
Then you would just move the object that needs to follow a path, and the physics object attached will get pulled.
edit: the 10*sprite2.mass stuff should be 100 instead of 10.
Thx. Willlook in to it.
I was searching around and didn't you ask this before in a way?
Anyway can't this problem be simplified further?
https://dl.dropboxusercontent.com/u/542 ... _push.capx
Use a family to be able to pick two different instances and then just compare the distances between the two and then move them apart with the "move at angle" action if they're too close?
Hi,
Thx for example. Will examine it. But I have concern that it wont work well, if its based of example from example rts project. The issue in rts example is that pushingout is easy to glitch out,with just few clicks the units end up on topof each other. But will examine.
Still I'm interested to see ho it would workwith physics. Bouncing out would be desirable too.