DoctaaMonstaa's Recent Forum Activity

  • I made a fluid simulation: dl.dropboxusercontent.com/u/69807169/LiquidTest.capx

    So, when two molecules are too close, they repel away.

    When they are a little bit further out, they attract (this is to simulate surface tension).

    They also repel away from the walls.

    Left click to make more molecules, right click to make a box.

    The cool part of this is that it obeys the laws of density and such. Make the box more dense and it will sink into the fluid, make it lighter and it will float on top.

    I wanted to make a second fluid to see how the two would interact, but it was a bit too hard (that's what the red dot was intended to be).

    You'll also notice that the who thing is insanely laggy. This is because there are around 50+ molecules that have physics enabled and are repelling and attracting each other. This is an issue I'm working on.

    Thanks for feedback!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Okay, so what I'm trying to do is make it so if one instance of an object collides with another instance of the same object, it will repel the first one away from the second one. However, it's proving difficult to get the object to avoid repelling from itself. However, if I could get the instance of the object that it collides with, it would be much easier.

    Thanks!

  • I'm trying to make several instances of the same object repel each other, but I'm having trouble figuring it out. I have a fairly large number of instances of this object, so it would be pretty processor-intense anyway, but that's not the issue. The issue is trying to find a system of loops or something that will make each instance repel every other instance. I can make every instance repel from one specific instance, but that doesn't really get the effect I'm going for. The force applied here would be inversely proportional to the distance between the two of them so that the objects wouldn't just accelerate away forever.

    The reason I'm doing this is because I think it would be a cool way to model a fluid (every particle in the fluid has a little space between the others, so it has room to flow). However, I am also open to suggestions for better ways to do this. Thank you!

DoctaaMonstaa's avatar

DoctaaMonstaa

Member since 12 Mar, 2013

None one is following DoctaaMonstaa yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies