1 vote

How to stop player when they hit an axis aligned bounding box?

Firstly, I wouldn't recommend writing a separate piece of code for each direction. Instead, try to formulate a general solution. Also, if you need more complex collision checking and handling, you ...
1 vote

Randomly distribute damage among allies

I would take one regiment, work out the losses for that randomly. I think this is a binomial distribution, but calculating a random binomial variable doesn't have a "one shot" closed form, ...
  • 458

Only top scored, non community-wiki answers of a minimum length are eligible