Browse Search Popular Register Upload Rules User list Login:
Search:
Need help with deleting water

Image:
screenshot of the scene

Author: Little

Group: Default

Filesize: 34.24 kB

Date added: 2022-05-08

Rating: 5

Downloads: 3110

Views: 436

Comments: 6

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This is a prototype of a pump I'm making.
The issue isn't with the pump itself. It works absolutely flawlessly. It uses a workaround to spawn water without turning off incompressible fluids (it's stupid that doing it the normal way does that), but the problem isn't with spawning the water, it's the part that "moves" the water.

The black box is meant to detect water and then destroy it, and then send a signal to the white box via a spring (no scene.my since I want to be able to use multiple in a scene).

This works great for small amounts of water. But at high pressure, it loses precision very quickly. It still technically works, but it deletes more water than it actually detects.

It'd be really nice if I could directly teleport the water or delete it using something like timeToLive, however e.other doesn't seem to work with water.

Press 1 to release the left experiment (transfers water to another cup and shows that during short usage it's okay), and 2 to release the right one (showcases the loss).

Of course, I could just make the box killer. However, then it wouldn't detect the water at all, because for some reason when a killer object collides, it doesn't trigger onCollide.
Last edited at 2022/05/08 01:12:07 by Little
Please log in to rate this scene
edit
Similar scenes
Title: Breakable water tower
Rating: 5
Filesize: 82.56 kB
Downloads: 359
Comments: 1
Ratings: 1
Date added: 2009/02/02 14:19:40
Made with: Phun
Rating: rated 5
download
Title: The COVID 19 / Killer
Rating: 5
Filesize: 189.46 kB
Downloads: 1266
Comments: 0
Ratings: 1
Date added: 2020/10/24 05:18:38
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Waterfall!
Rating: 5.625
Filesize: 34.63 kB
Downloads: 903
Comments: 1
Ratings: 2
Date added: 2009/03/27 22:14:12
Made with: Phun
Rating: rated 5.6
download
Title: rocket car version 2.0
Rating: 5
Filesize: 55.54 kB
Downloads: 906
Comments: 0
Ratings: 1
Date added: 2009/11/07 20:34:34
Made with: Phunlet
Rating: rated 5
download
Title: Infinite water generator
Rating: 5
Filesize: 116.44 kB
Downloads: 1761
Comments: 0
Ratings: 1
Date added: 2021/03/29 19:17:45
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Water & Ice with ice floating on top of the water
Rating: 5
Filesize: 29.46 kB
Downloads: 593
Comments: 1
Ratings: 1
Date added: 2021/02/23 21:21:24
Made with: Algodoo v2.1.0
Rating: rated 5
download
Little - I would like to try to help you but first I need to understand exactly what you want your scene to do. So, let's begin by labeling the containers C1, C2, and C3 (from left to right). Correct me if I'm wrong, but it sounds like you want to pump the water from C1 into C2 when the number 1 key is pressed. Then you want to pump the water from C2 into C3 when the number 2 key is pressed. Is that right?
The first part is right, but the point of C3 is to pump water into itself, which showcases the problem with this design.

But C1 does pump into C2.
Here is what I tried, and it seemed to work perfectly as you described (except it will use only the number 1 key):

1. Delete the black and the white box and the spring that are over C3.
2. Clone the black and the white box and the spring that are over C1 and C2.
3. Move the copied assembly over C3 and make move the two boxes closer together so that they will fit into C3 (make sure to include the endpoint when you move a box!).
4. Glue the white box to the background so that it will remain above C3 when the number 1 key is pressed.
5. Run the scene and then press the 1 key. Everything will work as expected.
Last edited at 2022/05/08 21:17:59 by Xray
My problem isn't that. The pump works fine. It's that the black (input) slowly deletes more water than it detects.
But I see what you mean. For some reason, even though I explicitly remember not telling it to, the pump at C3 deletes itself.
I don't see any of those issues when I do as I suggested above. Sorry, but I don't have any other ideas.