Hey guys,
This is my first topic post (woot), hopefully somebody can help. Admittedly, I've posted this in the chipmunk forum as well, but it seems to be less active than cocos2d forums.
Getting down to it, I'm looking to simulate some boats moving around the screen. I used the bit of hackery in this post: http://www.slembcke.net/forums/viewtopic.php?f=1&t=873&p=4043&hilit=path#p4043 in order to get my boats moving along a "path." That's all fine and dandy if I tweak some of the parameters, but when they collide, they usually end up getting stuck to each other. And no matter what I do, I can't move them apart (the ships can't rotate with enough force to move the other ship away, so both of them can't move away).
What I really want is for the ships to collide initially, but sort of repel each other mildly so they're never stuck together. It's not necessarily realistic, but I just don't want my ships in a place where they can't move apart. I've set up some sensors on the ships, so I know when another ship enters my sensors, I'm just a little lousy on the physics part of it. It's almost like two magnets repelling each other, and I wasn't able to decipher how to get that done from the chipmunk electric/magnetic demo.
Anybody have any good idea on how to simulate this? I'd even settle for some ideas on how to move the ships around in a more accurate manner. I guess I'm saying I'm a bit short on ideas, and any would be appreciated.
Thanks,
-Paul