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…
Pointers – newbie hell for the C coder ?
Pointers can be a confusing topic for the new C programmer, often explanations get bogged down in too much technical detail, or are just too simplistic. I’m going to attempt to show in both a simple and comprehensive manner just what pointers are and how to use them. First let’s consider the design of a…
Using qhull
At first glance turning a bunch of points into some kind of mesh should be an easy task. However look a bit closer and its a different matter. This is where qhull comes in really handy, designed specifically to do this and other closely related tasks, it comes as a stand alone application and also…
Nuklear (GUI) and raylib
Nearly a year ago I demonstrated using Nuklear with raylib, however because I was rendering the GUI inside a 3D environment (on a face of a 3D model rather than as a simple 2D overlay) Its occurred to me recently that the implementation might be a little confusing for someone just wanting to use Nuklear…