Code center > Bugs and fixes

Bots with 0 body? RESOLVED 2.43r

<< < (2/2)

Numsgil:
might still want to play with refbody clamping.  What happens when the bot dies and corpse mode is on, and another bot tries to read refbody?

Alternatively, when a bot has less than .5 body, you could just outright delete it from the world, or convert it into an energy shot (the bot is small enough at .5 body that it's effectively the same size as a shot anyway).

EricL:

--- Quote from: Numsgil ---might still want to play with refbody clamping.  What happens when the bot dies and corpse mode is on, and another bot tries to read refbody?

Alternatively, when a bot has less than .5 body, you could just outright delete it from the world, or convert it into an energy shot (the bot is small enough at .5 body that it's effectively the same size as a shot anyway).
--- End quote ---

Right now, when a bot's body drops below 0.5, be it alive or a corpse, it gets deleted from the world that cycle and the nrg tied up in whatever body it has vanishes from the world with it so there isn't really a body refvar issue with corpses.   One could argue I suppose that that nrg should remain in the sim, but at most it's 5 nrg.  Depending on the decay size, the last decay shot is likely to take much or all of that with it so on average, in practice, the nrg actually leaving the sim due to fractional body is pretty trivial...

It's on my list to implement the "die in a burst of nrg shots" option you suggested a while back.  In this mode, of course all body will be converted to nrg shots...

Navigation

[0] Message Index

[*] Previous page

Go to full version