How does CNCT hold its shape

  • ReallyJustDont
    7th Jul 2020 Member 0 Permalink

    i've noticed that cnct doesn't fall in the same way as other powders, but when i checked the source code of CNCT against STNE, they seemed pretty much the same

  • QuanTech
    8th Jul 2020 Member 0 Permalink
    @ReallyJustDont (View Post)
    It's because of this line of code
  • jacob1
    8th Jul 2020 Developer 0 Permalink
    Not true, it is this line of code instead.

    This code says, "if CNCT is trying to fall down, and there is another CNCT directly below it, then abort the move attempt". So it keeps it in stacks how you see it.

    QuanTech's line of code says things aren't allowed to displace CNCT. That probably contributes to it, but the stacking is that other line.
  • ReallyJustDont
    8th Jul 2020 Member 0 Permalink

    so it's cnct specific?

    ah, ok

    so if i want to recreate something like cnct in my lua mod, would i need to add some special update function that does weird stuff with the vx and vy properties