Moving Solid

  • rdococ
    7th May Member 1 Permalink

    Code

     

    I may have gotten a bit carried away and ... implemented a moving solid. It's kinda buggy and glitches out after UNDO or saving (they do mostly load well if you clear the sim beforehand, but don't rely on it just yet), but it's a solid, it has rigidbody physics, and it's destructible.

     

    Unfortunately, it's quite laggy. I believe a significant speedup can be found by rewriting the script in C++ (as well as an opportunity to fix the bugs) and I plan to do so sometime in the future, so you can consider this a proof-of-concept.

    Edited 6 times by rdococ. Last: 8th May
  • MachineMan
    8th May Member 0 Permalink

    SPNG is a moving solid if you set it's flags property to 0x8, CLST acts as a pseudo-solid if sufficiently cooled, and DMG stays focused when falling; it doesn't spread out as it falls like other powders.  You can use code from these elements to help out some.

    Edited once by MachineMan. Last: 8th May
  • powder_is_epic
    8th May Member 0 Permalink

    this is really good actually