If it doesn't work try trying in scene.my.ang = 0 in the console
Can you guys give me some feed back? What doesn't work? Can you see the black circles appearing?
Я вижу несколько орфографических ошибок, я все исправить. Я не говорю русский кстати
I present to you my new cannon, it's better than my previous two, and I think is it better than the other ones.
Why do I think this? Here are some bugs on the previous ones (and also my "Cannon with working gunpowder").
1. Size and proportion
There are no cannons with thin walls, the barrel will explode at the first shot. Excluding mortars, because it is overloaded for a short period of time.
2.Gunpowder
My gunpowder is realistic, In my previous version it was something like nitroglycerin in the way it works.
I think that particles with high restitution aren't gunpowder.
I have two versions of gunpowder the first one uses only oncollide scripts, but if you don't like that pile of scripts I have made another one. It uses function scene.my.gunexp
(e, r, t, y)=>{ scene.addCircle({pos := e; radius := y; density := 2; friction := 0.05; restitution := 1; controlleracc := t;
airfrictionmult := 0; color := r; zdepth := 1000; onCollide := (e)=>{controlleracc > 0 ? {controlleracc = controlleracc - 0.05} : {density = 0}}});
scene.addpen({ pos := e; size := y * 2 + 0.02; color := r; fadetime := 0.3 })}
3. Fuse
There are no secondary objects like in the data cable, only the fuse.
Maybe I forgot something, but it doesn't matter.
Please comment, I hope you like it.
I didn't make a copy of your idea, we both made a simulation of a chain reaction. I developed this without knowing about your scene and I didn't use the same method.