▲ 508 ▼ I wrote a dice rolling script with 3d rendering, collisions and friction in bash because why not [edit: code available now] (files.catbox.moe) submitted 5 days ago* (last edited 4 days ago) by Pudutr0n@lemmy.world to c/programming@programming.dev 99 comments fedilink hide all child comments 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)
[–] MonkderVierte@lemmy.zip 15 points 5 days ago (1 child) (hopefully) Constructive critique: it looks like you're handling the dice in physics as a ball? Takes forever to settle at the end. the throw has a visual glitch. permalink fedilink source hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 15 points 5 days ago (1 child) Thanks! Yeah, there's definitely A LOT of room for improvement. collisions are handled per vertex, but torque is applied to angular impulse to the dice as a whole (like a ball I guess). The settling is a huge issue, yes. the visual glitches I've been trying to get rid of but man... fix one and then another one pops up in a different case. Thanks for your critique. :) permalink fedilink source parent hideshow 2 child comments replies: [–] Atherel@lemmy.dbzer0.com 5 points 5 days ago I first read it as "there's a lot of DOOM for improvement" but as the rest of your comment confirmed this, I'll keep it that way in my head! permalink fedilink source parent
[–] Pudutr0n@lemmy.world [S] 15 points 5 days ago (1 child) Thanks! Yeah, there's definitely A LOT of room for improvement. collisions are handled per vertex, but torque is applied to angular impulse to the dice as a whole (like a ball I guess). The settling is a huge issue, yes. the visual glitches I've been trying to get rid of but man... fix one and then another one pops up in a different case. Thanks for your critique. :) permalink fedilink source parent hideshow 2 child comments replies: [–] Atherel@lemmy.dbzer0.com 5 points 5 days ago I first read it as "there's a lot of DOOM for improvement" but as the rest of your comment confirmed this, I'll keep it that way in my head! permalink fedilink source parent
[–] Atherel@lemmy.dbzer0.com 5 points 5 days ago I first read it as "there's a lot of DOOM for improvement" but as the rest of your comment confirmed this, I'll keep it that way in my head! permalink fedilink source parent