Browse Search Popular Register Upload Rules User list Login:
Search:
SWire Demo - Fuel Line

Image:
screenshot of the scene

Author: UnityDogGaming04

Group: Default

Filesize: 18.08 kB

Date added: 2021-10-09

Rating: 5

Downloads: 863

Views: 177

Comments: 0

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

After several days of trying to figure out how to get a value from one geom to another through a spring, I gave up on trying to understand it and took what I was given to make something useful.
This scene contains a demo of spring fuel lines, which come in pairs. They don't have to come in pairs necessarily, but it helps understand how information moves. All springs in this scene have unequally sized endpoints. Information travels from the big end to the small end. It doesnt have to travel in one direction only, but shush.

The orange box is a fuel tank, with an internal _fuel value, which is set to its area * 600.

The dark gray polygon is a thruster, with internal values _consumption and _fuel. The _fuel value is copied from the fuel tank via the red spring. _consumption is set by code in the thruster.

The thruster has a bunch of code, such that it can only be active when there is fuel in the tank AND the thruster key ("W") is down. When active, it sets the thruster polygon's _consumption to its own value _fueluse. When not active, it sets it to 0.

The red "source" spring sets the _fuel value in the thruster polygon to the _fuel value in the tank.

The blue "drain" spring sets the tank's _fuel to itself minus the consumption value of the thruster polygon.

Off to the left is a simple diagram depicting information flow through the SWire.

This might become a new space game concept!
Last edited at 2021/10/09 03:02:00 by UnityDogGaming04
Please log in to rate this scene
edit
Similar scenes
Title: Diesel Explosion
Rating: 6.75
Filesize: 114.17 kB
Downloads: 601
Comments: 0
Ratings: 4
Date added: 2008/12/16 05:38:13
Made with: Phun
Rating: rated 6.8
download
Title: goal line technology demo
Rating: 5
Filesize: 36.66 kB
Downloads: 130
Comments: 0
Ratings: 1
Date added: 2017/07/12 01:58:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: East Rail Line
Rating: 5
Filesize: 393.21 kB
Downloads: 2485
Comments: 5
Ratings: 1
Date added: 2015/08/12 13:22:09
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: short dirt line :)
Rating: 5
Filesize: 1.25 MB
Downloads: 534
Comments: 0
Ratings: 1
Date added: 2022/02/24 21:33:42
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Fuel engine
Rating: 5
Filesize: 149.31 kB
Downloads: 1644
Comments: 3
Ratings: 3
Date added: 2011/07/01 18:48:29
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Cannon that needs fuel to ignite
Rating: 5
Filesize: 436.36 kB
Downloads: 2395
Comments: 0
Ratings: 1
Date added: 2012/06/13 11:28:22
Made with: Algodoo v2.0.2
Rating: rated 5
download