Since discovering the Linux version of the Unity editor was “mainstream” I gave it a right good work out. Initially it did look rather promising, alas it really doesn’t take too long once you push things to discover the bugs, currently the assets engine and in particular prefabs definitely have what is basically a show…
Simple Yes No dialog for Unity
Confirming an action, for example when the user clicks exit on an exit button in a main menu, is one of those nice touches that just add that little bit more polish and user convenience. As such its something that should be in the toolkit of every Unity coder. Creating the prefab for the dialog…
Unity 3d Filtering collisions
A quick and simple tip, for when you just need storms of missiles! When implementing logic to arbitrate collisions, things generally go okay initially, nothing too busy, a single bullet zips to its target and a collision happens… Great but what if we want a storm of bullets. The first thing you’ll notice if you…
Unity 3d – Player control and physics
There are very many ways to control your player in a Unity game, in this case I had a number of specific requirement. Steering shouldn’t behave like a hovercraft skid steering or a rocket sled on ice! The player should be able to push other objects that have rigid bodies. When landing on a moving…
Rearview mirror with Unity 3D
Its not at all uncommon to have multiple cameras in a game. In my case I decided that a rearview mirror would help the player with situational awareness. Handily its no surprise that Unity has a Render Texture asset which is just the thing we need for this job. In the example video there is…
Unity 3D – odd behaviour with rigid bodies
If you’ve ever done much coding using “physics” engines, then you’ll have seen the hilarity that ensues when you accidentally try to make two object occupy the same or even part of the same space. The objects in question will be subjected to literally massive forces, flinging both the objects far and wide. My initial…
Testing Unity 3D Editor in Linux
I’ve kept my eye open on Unity’s Linux progress for some time, and the less charitable of you out there could be forgiven for thinking that if the people writing Unity really believed in it, then they’d rewrite the editor in Unity itself… After an initial look with Void Linux (some success but later versions…
Creating a simple WordPress Plug-in
I’m going to show a very simple plug-in, it will show the years, months and days since a given day, to ensure it has a reasonably unique name (which is important) I’ve called it sincer. Sincer will use wordpress short codes to insert the date interval into any post, so first it’s worth looking at…
Cell shading with raylib
Cell shading (sometimes called toon shading) is a fantastic way to give your game a really neat style. There are really two different aspects to a toon shader, one is the banded lighting, and secondly the outlining of the whole model and also outlining the separate features in the model. In order to detect interior…
Alternative Wavefront OBJ loader for raylib
[ TLDR ] The code is at the bottom of the post… I seem to have had incredable bad luck with OBJ files, while some lock up the loader (material hash map problem as far as I can tell) and some even still causing heap corruptions. I looked quite a bit into the current loader…