Image:
 Author: UnityDogGaming04 Group: Default Filesize: 93.99 kB Date added: 2021-10-09 Rating: 5 Downloads: 820 Views: 313 Comments: 3 Ratings: 1 Times favored: 0 Made with: Algodoo v2.1.0 Tags:
|
This is the successor to laser-based neurons in some of my recent scenes. Springs don't have to be aimed, and don't need line-of-sight to work!
The neurons are still just as hard to understand, but I added a _rule variable in each neuron which changes the output rule of the neuron.
This scene is super basic at the moment, but I plan on adding more good stuff soon.
UPD: added memory circuit, changed _rule 3 to output 0 when input is 0
I FINALLY GOT THE PRECISE BEHAVIOR I WANTED!
The key was to have two different variables, one which is _acc, the other being the value _acc had one frame ago. A third value, _pracc, is set to the difference between these. This, by definition, is how much _acc has changed from one frame to the next, and the code outputs _pracc instead of _acc!
However, after a prolonged period of being stimulated by the same value or by a value of the same sign, _acc and _pacc grow out of whack! To combat this, divide _acc by 2 each frame, and instead of checking the difference between _acc and _pracc, check the difference between (_acc * 2) and _pracc! This does cause, however a 1-frame delay between getting input and responding to it, but IT WORKS!!!!
please excuse my enthusiasm baii x 1.875 |