Image:
 Author: UnityDogGaming04 Group: Default Filesize: 37.65 kB Date added: 2021-03-08 Rating: 5.1 Downloads: 3208 Views: 387 Comments: 0 Ratings: 3 Times favored: 0 Made with: Algodoo v2.1.0 Tags:
|
As my understanding of programming in general improved, I've been able to reduce the components in things I create.
There was a long period of time where I just couldn't figure out how to make a fast, script-based transistor without using global variables.
The main trouble I had in doing so was trying to find a way to get information from a box to a laser attached to it.
My first transistor that didn't require globals, while also being script-based, is the Laser Transistor 1.5.
It has an open hole through it, just like the first laser transistor. But it doesn't rely on a global variable, meaning it can be cloned without script changes.
However, it has two primary drawbacks - it relies on a mechanical system, meaning it cant operate faster than 10hz.
It also still has parts which move and collide and slide, meaning it uses a lot of system resources, especially for one out of potential dozens or hundreds of them in a single circuit.
Eventually, I found one bit of code which can refer to the properties of a geometry through the scripts within the object attached to said geometry, which would allow me to finally incorporate logic into a single rigid body and its attached laser. With a bit more complicated code, entire integrated circuits can be simulated within a single rigid body, instead of a single logic gate simulated within several.
Thamks for watch me grow and become bigbrain bai |