Code center > Suggestions
Collisions
Botsareus:
ok , I just tryed the F1 mode , I found some more bugs , but my bots make it , They do make it anyway , few....
PurpleYouko:
--- Quote ---But if the new legues will use this new , slow , collisions ,then I have no choise , I will use them too.
--- End quote ---
What actually happens now (V2.36) is that when a collision is detected the two robots are moved (not accelerated) directly away from each other such that they don't overlap.
Next, the incoming momentum of both robots in both x and y directions is calculated.
Then the combined momentum is divided between the two robots in proportion to their mass so that a huge fat robot hitting a tiny one will just be slowed a little while the tiny one will be accelerated away from the impact quite a lot.
A collision like this (more arrows = more speed)
O>>>>>o>
will result in
O>>>o>>>>>>>>>>
and
O>>>><<o
will yield
O>o>>>>>>>>>>>>
Make sense now?
PurpleYouko:
Previously any collision resulted in both robots being accelerated away from the impact by an amount proportional to the degree of overlap.
This just wasn't realistic as a large overlap could sometimes happen at low speeds while a small overlap could equally happen at high speeds.
Botsareus:
ok , thx, now it makes sense.
Zelos:
it is ALLWAYS, ask any physicer about it. it you throw a ball and then it bounce at a wall. to wall get some momentum and goes at the other way, or maybe its the air that get the momentum, did you ever think on that air can get it?. and if I start whit 3m/s then something else have -3 compared to me. it is coz the momentum in the universe always shall be 0, that spacecrafts worx. if it wasent so we wouldnt be able to go anywhere in space.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version