Sorry, i forgot to change the old complicated equation, here is the new one:
vel = (_v0 + 10)*(_d - 1)* [cos(_a), sin(_a)]
( i shall delete this scene after you read the comment, the new one was
uploaded )
1) (_d - 1): this factor makes the balls go twards their
leader if ther are more than 1.0 meters far away
and away from it if they are closer than 1.0 metres ..
2) (_v0 + 10): it is just a factor that makes the balls go
faster if their leader moves faster (to stay close to it)
3) [cos(_a),sin(_a)]: #self explanetory
the "vel" (velocity) is a vector, it needs a direction;
[cos(_a),sin(_a)] is the direction (vector of
lenght 1) that goes from the follower to the leader
i just wanted to add, maybe it's better if you store the whole position, that shoud be faster and easier for you :
... scene.my.pos = pos ...
than later calling it, for example :
x = scene.my.pos(0)
y = scene.my.pos(1)
you made this in a day 'o' ... *surprised Pikachu face*
god? is that you? ... you're finally back from your vacation I see
just kidding x),
this is one of the smoothest and coolest vehicles/scooters I've seen so far on Algodoo, and the details !!! it's really really ReAlLy impressive , great job :3
Last edited at 2020/10/08 23:31:26 by mohamed159357
WHAAATT *O* ... !!! THAT'S SUPER AMAZING !!
never seen something quite like this before, it's AwSoMe. this must have taken some time to finish, kudos for the effort !!