this post was submitted on 21 Nov 2024
23 points (96.0% liked)

Programming

17476 readers
238 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
top 5 comments
sorted by: hot top controversial new old
[–] conciselyverbose 1 points 3 hours ago

Just FYI, this is only the additional "live books" thing.

The actual books are all there as normal downloads.

[–] [email protected] 1 points 3 hours ago

I've bought a few of these bundles but could never get into reading the science or tech books on my small laptop. And they are useless on a phone. They might be best on a big desktop monitor, especially in portrait orientation. I have an easier time with narrative ebooks. History, fiction, etc.

Some of the books in the bundle do look good.

[–] [email protected] 2 points 9 hours ago (1 children)

Ehhh, if I haven't had to learn it yet, I'm probably good.

[–] [email protected] 14 points 5 hours ago (1 children)

Never say never! I worked on the original Dead Space (2008). There's a minigame in chapter 4 where you have to defend the ship's hull from incoming asteroids by shooting them with a cannon. On completion of the challenge, there's some explanation as to why the cannon's auto-targetting system is back online and you can leave the minigame and the cannon automatically continues shooting asteroids as you wander off. While I was rummaging around the code for this, I stumbled across a quadratic formula implementation. On closer inspection I discovered that some smart cookie had actually implemented the cannon's auto-targetting system for real! It actually tracked each asteroid's velocity and speed and aimed ahead of the target to hit it with its slow-moving projectiles. I just assumed the whole thing would be playing a canned animation faking the cannon shooting at the asteroids. My hat goes off to the programmer that decided to solve that problem - it's one of the very few times I've ever seen the quadratic formula used in gamedev!

[–] conciselyverbose 2 points 2 hours ago

The hard math is figuring out the path (because small imprecision in the guessed location of the object over time can pretty easily cause meaningful errors. If you control the engine and know the real vectors, projecting their path out isn't super complicated.

But I'm all for the idea that knowing a variety of math allows you to solve a lot more problems.