Browse Search Popular Register Upload Rules User list Login:
Search:
Snow Cannon

Image:
screenshot of the scene

Author: KarateBrot

Group: Default

Filesize: 26.23 kB

Date added: 2010-02-15

Rating: 7.5

Downloads: 3587

Views: 4622

Comments: 15

Ratings: 14

Times favored: 2

Made with: Algodoo before v1.8.5

Tags:

Scene tag

I made this snow cannon to test a function that creates random numbers. It can be found here.
Primarily look at the way the snow gets shot out. The snow particles randomly get spawned between a range of 0.4m with random velocity between 5m/s and 15m/s.

Objective:
Cover the area below your snow cannon with snow.

Controls:
[↑] - rotate up
[↓] - rotate down
[ENTER] - activate cannon

If it starts lagging press [SHIFT] to erase the snow particles.


NEW:
Phun scene:

http://www.algodoo.com/al … p?id=38148
Last edited at 2010/02/20 14:11:21 by KarateBrot
Please log in to rate this scene
edit
Similar scenes
Title: Snow Cannon [phun version]
Rating: 7
Filesize: 28.02 kB
Downloads: 2342
Comments: 5
Ratings: 6
Date added: 2010/02/20 14:07:00
Made with: Phun
Rating: rated 7
download
Title: bobs epic snow fort. read description
Rating: 4.5
Filesize: 203.22 kB
Downloads: 574
Comments: 0
Ratings: 2
Date added: 2010/06/15 15:27:41
Made with: Phun
Rating: rated 4.5
download
Title: Super Cannon Car v2
Rating: 5
Filesize: 0.76 MB
Downloads: 586
Comments: 0
Ratings: 1
Date added: 2013/11/19 18:41:10
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Snow Blower
Rating: 5
Filesize: 51.02 kB
Downloads: 501
Comments: 0
Ratings: 1
Date added: 2010/10/18 17:05:05
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Algodoo snow maker
Rating: 5
Filesize: 1.1 MB
Downloads: 1853
Comments: 0
Ratings: 1
Date added: 2022/08/15 00:40:13
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Snow blower DEMO
Rating: 5.625
Filesize: 207.69 kB
Downloads: 4077
Comments: 2
Ratings: 2
Date added: 2017/02/25 18:27:45
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Fine quality. I like it.
nice:tup:
doesn't work on phun:( :( :tdown: :x :o :| :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: :tdown: SMILEY SPAM!!!
Sorry for that. But you can make it work in phun, too.

1)
Go to the scripting menu of the grey box that's hidden behind the cannon.

2)
Copy this code into its onCollide:
Scene.addCircle({ color := [1.0, 1.0, 1.0, 0.8]; buttonDestroy = "shift"; onCollide := (e)=>{density = +inf}; drawBorder := false; drawCake := false; airFrictionMult := 10; radius := 0.06; heterocollide := true; zdepth := 0; pos := e.pos + scene.my.random(-0.2, 0.2) * scene.my.ort(e.normal); vel := e.normal * scene.my.random(5, 15) })

3)
Make something collide with the grey box very fast. For example a spinning circle with 4 smaller circles on the edges so when the big circle is spinning very fast the small ones collide with the grey box.

4)
Make the colliding pieces collide with collision group B
add this to the spawned circle's oncollide:=heterocollide=false.

Then the snow piles up.
Very cool! I like this setting:
(e)=>{
Scene.addCircle({ color := [1.0, 1.0, 1.0, 0.8]; restitution := 0.1; buttonDestroy = "shift"; density := 0.2; drawBorder := false; drawCake := false; airFrictionMult := 1.5; radius := 0.06; heterocollide := false; zdepth := 0; pos := e.pos + scene.my.random(-0.2, 0.2) * scene.my.ort(e.normal); vel := e.normal * scene.my.random(5, 20) }) }
can u plz make a phun version idk how to script
Okay I'll make it tomorrow:)
u pwn i did what u said (i have phun) EASY i used to be like that i didnt know how to script but now so fun!!!

10/10 like how it sticks
i didnt even know u could go to infinite kg and mass.

cool still....:P

put a box in the middle not stuck to anything. then turn on ....when the snow hits the box it sticks in the air
yeah you can set everything up to +inf values. +inf friction is sometimes also very useful but not realistic.
I know the circles stick to the position where they collide with something but that's no problem. you could also make them stick only after they had a few collisions.
done. you can find the phun version of this scene in the description:)
:D :D :D :D cool
can you plz make it phunlet safe and its awsome
:tup:
I've found that in the spawned circles' onCollide, I like to set heteroCollide to false and airFrictionMult to 1000 instead of density to +inf. This way, the snow does pile up, but doesn't stick rigidly in place, so it moves, but slowly. This way, it piles up more realistically.

To make it phunlet-friendly, you could add this to the beginning of the code in the gray box, before the Scene.addCircle({ but after the (e)=>{ :

{controllerAcc == 11} ? {
controllerAcc = 0;
scene.my.memory = 17;
scene.my.random = (min, max)=>{
x := scene.my.memory;
m := 1249 * 373;
x = x ^ 2 % m;
scene.my.memory = x + sim.time;
x <= 1 ? {scene.my.memory = scene.my.memory + 17} : {};
x * (max - min) / (1249 * 373.00000000000000) + min
};
scene.my.ort = (x)=>{[x(1), - x(0)]}
} : {};

Interesting concept, by the way.