Daddy needs a new pair of RAM!

edit: the fps are way better in smaller terminal windows with lower character count but then it’s hard to make out the dice. D:

edit2: code here (expires in 2 weeks)

  • Cethin@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 小时前

    Since you’re rolling on a plane, can’t you simplify the collisions to only check the corners? I think that should be all that’s needed. There shouldn’t be a time where the edges or faces are below the lowest corner on a plane, so they can be skipped I believe.

    • Pudutr0n@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      46 分钟前

      i need to check the corner collisions but when the die start settling and an entire edge comes close to the floor, gravity keeps pulling back on several of them making them bounce back just a tiny bit, not reaching the velocity that gets rounded to zero.

      I fixed that on the current version doe!