dotnet-ad / Humper

Collision detection for Axis-Aligned-Bounding-Boxes (aka AABB) in C#.
MIT License
104 stars 19 forks source link

Fluid like collision #3

Open LastMedve opened 7 years ago

LastMedve commented 7 years ago

Hello I like to make a collision what is similar to the water. Red color is the real collision and the blue color is a force like collision.

  1. when the blue boxes only collide then nothing happening
  2. when the blue box and an another red box collide then the red boxes slowly start to push back from each other (some vector math to calculate the push back velocity)
  3. when the a red box forcefully bumping into the another red box then it start to push the another red box simple This is my idea but i dont know where have i start it. Can you help me? :)