Hackster is hosting Hackster Holidays, Ep. 4: Livestream & Giveaway Drawing. Start streaming on Wednesday!Stream Hackster Holidays, Ep. 4 on Wednesday!
Mike Hogan
Published © GPL3+

Virtual Logic

Computational logic operations from virtual autonomous objects.

BeginnerProtip1 hour845
Virtual Logic

Things used in this project

Hardware components

MassiveIO Logic Blox Primitives
Logic Blox Unity prefabs are used to create, debug and design simple to complex virtual electronic circuits, control panels and or game play controls. Logic Blox are placed in game and can be connected together in order to run other logic props, sounds, animations and game objects. Pre-attached script file(s) manage behavioral logic, animations and connections to other props.
×1

Software apps and online services

Unity
Unity
Virtual environment editor
MassiveIO Logic Blox Deluxe
Logic Blox 5 Deluxe includes new/updated models and scripts for the entire series.

Hand tools and fabrication machines

MassiveIO Logic Blox Models
3d models of Logic blox
Logic Blox
MassiveIO Logic Blox
Granby Games logic prop prefabs can be used to create, debug and design simple to complex virtual electronic circuits, console replications and or game play controls. Ready to use multifunctional logic prop prefabs are placed in game and connected together to run other logic circuits, sounds, animations and gameObjects. Attached logic engine script file manages behavioral logic and connections to other props.

Story

Read more

Custom parts and enclosures

Logic Blox Models

Logix Blox 3D print files

Schematics

Linking

Connecting logic blocks

Primitives, gates and switches

Virtual component Table

Code

Gate control code

C#
Logic props do not require programming. All setting are made from the Unity inspector.
Example code segment of logix blox engine for control state of lamp props.
 if (chipType.ToUpper() == "LAMP")
        {
            if (gateState[gateIn] && gateState[gateOut] != logicOn)
            {
                gateState[gateOut] = logicOn;
                setExtData(gateOut, logicOn,0);
            }

            else
            if (!gateState[gateIn] && gateState[gateOut] == logicOn)
            {
                gateState[gateOut] = !logicOn;
                setExtData(gateOut, !logicOn,0);
            }

        }

Credits

Mike Hogan

Mike Hogan

9 projects • 50 followers
Interested in hardened massive io frameworks

Comments