I originally wanted to map to keypad enter and left ctrl, but it turns out when you hold down ctrl or shift, the other key doesn't respond. This is the reason for my odd choice of keys. I went with the keys inside the shift keys. (I deally I would have wanted the shift keys, like on Pinball Dreams back on the Amiga, which is where the idea for this scene came.)
But now I'm also concerned that my mappings will not have the intended behaviour on different language keyboards, mine being a Swedish one. So, I think default mapping should go on keys that are the same for all variations of keyboards. Perhaps Z and M? Or left and right arrow keys like s_noonan suggested?
Also, anyone know if there's some functionality in Thyme for picking up key scancodes instead of the character produced by a key?
I think we're looking for different things. I'm not too concerned with frequency, etc, I'm using algodoo as a physics simulator to explore firearm mechanics. I want to get away from abstractions as much as possible, such as using springs and thrusters.
As for delayed ignition, that is sort of how shotgun ammunition works. I simplified the code for the powder to make it go immediately to full expansion rather than the slower expansion I used at first, which makes for a more realistic pistol calibre energy development.
Either way, this was my first successful attempt at dialling in powder, bullet mass, recoil spring and bolt mass in such a way as to get the action to cycle and casings to eject.