Unity: Events vs Interfaces

“Events are evil!” is a common opinion among Unity developers. What are the reasons behind this statement and are interfaces an alternative to events? Example implementation at the bottom.     Problems A common source for event bugs are timing issues. For an event to work correctly you have to subscribe before it’s triggered and … Read more

Unity: Null Check Not Working?

Ever checked an object for null and it didn’t work? Computers do precisely what you tell them to do -> it must be a programming error that bypasses the null check.   This is one of the moments where I doubt my sanity as a programmer.   What Happened? The C# target object isn’t null … Read more

The aMAZEing Labyrinth

A mobile adaption of the classic ‘Das verrückte Labyrinth’ by Ravensburger.   Genre: Puzzle Platform: Mobile (android, ios) Artstil: 3D Engine: Unity 3D   Year: 2021 Duration: 7 month   My Part: Artificial intelligence Pawn movement General gameplay features   All of the rules – like shifting the labyrinth and collecting treasures and secrets – … Read more

Unity: Preserve Articulation Body State

One constraint of articulation bodies is that they lose their physics state if their hierarchy changes. This behaviour manifests as snapping back to their initial configuration/position. You can find a short overview of the constraints and advantages of articulation bodies here.   Problem Changing the active state of the root articulation body is also a … Read more

Unity: Articulation Body Overview

The system was integrated for industry applications like realistic physic simulations for robotics or the training of neural networks. But it can also be used in games where a high precision physics simulation is needed. For example physics-based puzzles.   Some parts of the feature are still buggy or not completely implemented yet. Especially the … Read more

Unity: Articulation Body Documentation

I’m currently playing around with articulation bodies which were introduced in 2020.1. Some parts of the feature are still buggy or not completely implemented yet. Especially the spherical joint seems to exhibit a lot of bugs that crash Unity’s physics system and should be avoided at the moment.   Because the feature is so new … Read more

Private Variables and LEDs

I played around with my Arduino starter kit and read a few pages in Making Embedded Systems (more on it here). Now I am ready to blink the built-in LED of my board. My first approach looked like this: #define LED LED_BUILTIN void setup() { SetupLED(); } void loop() { EnableLED(); delay(1000); DisableLED(); delay(1000); } … Read more

Craftspeople at the Museum

I’m really happy to announce that the Museum der Alltagskultur (museum of everyday culture) in Waldenbuch added Craftspeople to their exhibition. It’s a game I contributed to at the Coding da Vinci Hackathon in 2019.