Browse Search Popular Register Upload Rules User list Login:
Search:
Misbehaving Particles

Image:
screenshot of the scene

Author: T_Reißig

Group: Default

Filesize: 14.47 kB

Date added: 2023-03-08

Rating: 5

Downloads: 228

Views: 154

Comments: 10

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Why are they doing this? And why shouldnt they?
Last edited at 2023/03/12 20:19:40 by T_Reißig
Please log in to rate this scene
edit
Similar scenes
Title: Mysterious Particle Ball
Rating: 5
Filesize: 14.46 kB
Downloads: 367
Comments: 1
Ratings: 1
Date added: 2025/01/03 17:16:57
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: Gravitational particles
Rating: 5
Filesize: 47.6 kB
Downloads: 961
Comments: 0
Ratings: 1
Date added: 2015/09/18 05:19:02
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Unique particle collessing
Rating: 5.5
Filesize: 76.28 kB
Downloads: 597
Comments: 9
Ratings: 2
Date added: 2015/07/07 05:24:31
Made with: Algodoo v2.1.0
Rating: rated 5.5
download
Title: algodoo traps
Rating: 5
Filesize: 122.94 kB
Downloads: 224
Comments: 0
Ratings: 1
Date added: 2015/06/25 08:16:59
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: The Zoo of Subatomic Particles
Rating: 5
Filesize: 23.26 kB
Downloads: 629
Comments: 1
Ratings: 1
Date added: 2021/02/20 00:41:29
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Electric Charge Simulation
Rating: 5.375
Filesize: 59.95 kB
Downloads: 642
Comments: 2
Ratings: 2
Date added: 2014/10/17 21:59:32
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Quote: "Why are they doing this?"

Answer: Particles do not misbehave. They do exactly what YOU commanded them to do in your onCollide script. :lol:
Yeah, I know:D Im just joking, but thanks for taking the time and pointing it out anyway ^^
Why dont the contol keys a and s work, when I download the scene on another computer? Arent keybinds saved within the scene? :huh:
Last edited at 2023/03/09 09:36:48 by T_Reißig
What keys are used in this scene? I may be able to answer your question if I can see the actual script.

Sorry, I meant to say "Where did you place the key handling script? I cannot seem to find it anywhere in the scene.
Last edited at 2023/03/09 16:01:03 by Xray
I have typed them into the main console:

keys.bind("a",{scene.my.multi = scene.my.multi +1})
keys.bind("s",{scene.my.multi = scene.my.multi -1})

Nevermind, I forgot to add "scene.my" at the beginning.
Last edited at 2023/03/11 04:22:10 by T_Reißig
Oh, that's the problem! As of around 2012 we no longer use keys.bind because of some issues with it. We now use keys.isDown("key").

You can place the script in onKey, but for most applications it works just fine in postStep. In onKey, you get just one key press with each key press. In postStep, you get multiple key presses (machine gun style) if you hold the key down. For the keys you mentioned above, the script would look like the following:

Keys.isDown("a") ? {scene.my.delvel = scene.my.delvel +1}:{};
Keys.isDown("s") ? {scene.my.delvel = scene.my.delvel -1}:{}

Try it and let me know if you have any problems with it.
I tried it, and it seems to be working really well. Thanks alot!:tup:
It is actually multiple key presses on hold down even in onKey, just seems to be slower than postStep.
Okay, great! :tup:

Here is another helpful script for ya....

You probably noticed that the very first keypress of "a" or "s" it does not work. That's because the scene is always in "edit" mode, and keys a and s are used to trigger built-in functions. You can prevent that by forcing the scene into PLAY mode each time the scene RUNs. Here's how: In the upDate event of any geometry put the following script:
app.gui.playMode = sim.running

I use that in nearly every scene that I make. I think you will like it!
Last edited at 2023/03/11 17:11:24 by Xray
Works like a charm, thanks! :*)