Code center > Suggestions
Pond Mode Expanded
rsucoop:
--- Quote from: EricL ---In the current code, nrg has no mass. Body and shell are the only substances with mass. Thus a bot can change it's mass by making shell or converting nrg to body and back. This is what Num's means when he says conservation of nrg/mass doesn't apply.
As a strawman proposal, I might make nrg shots have mass equivalent to if their contained nrg was converted to body. Bot's could generate quite a propulsion kick by keeping their own body and shell stores small and shooting. It would be easy to shoot a shot more massive than the bot that shot it. Of course there is a cost to doing this in the form of lost nrg. Impact adds both the nrg as well as the inertia to the impacted bot.
--- End quote ---
I like that idea. It shouldn't be too hard to implement since the physics is already in 2.43.1.
EricL:
I should point out that this might be a more radical change than it first appears. It's not enough to just give shots mass. I have to impliment Newton's 3rd law when it comes to firing nrg shots and when nrg shots impact. This will radically change the effect the act of firing an nrg shot or having an nrg shot impact has on light bots, particularly if we go so far as to impliment it for returned nrg shots. The result my be that when you shot feed off a light bot, it goes flying away due to the reaction of ejecting the nrg shot and you go flying away when the shot impacts you and transfers it's inertia to you. Not saying this is a bad thing - it might actually help dumb bots evade shot feeders and give slower more massive bots a shot feeding advatage - but I wanted to point it out.
Numsgil:
I would add it as a new shot type. It would be used exclusively for propulsion, forcing another bot to go away, that sort of thing. Wouldn't do anything else. Or add it for all shot types and see what happens. It might not be as big an effect as we think.
Also, if it's feasible, I'd like to see bots hit off center to start spinning.
Endy:
Sounds cool
I agree that a shot type would be best, but it could be interesting to see what effect it has on regular shots.
Could we implement more of the actual laws for motion anyways? The thing with massive bots and gravity has always bugged the crap out of me.
Numsgil:
A proper physics engine is a project that's as deep and convoluted as the rest of the program put together. It's what I'm presently working on.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version