Demoing how to build with the new slider rails.
Category: Uncategorised
Playable build – updated
Slider rails
There are now some new parts in the game, and a new attachment type. Slider rails can attach to blocks either with a rigid or with a slider attachment (you can cycle between these). The slider attachment allows relative linear motion between two parts in one direction only. This allows you to create sliding platforms, lifts, extending crane booms, and all sorts of other things!


Construction mechanic
I have also made some improvements to the construction game mechanic to make things work a bit better:-
- The construction you have currently selected no longer collides with other constructions. This prevents you from accidentally knocking other stuff around due to physics collisions with the selected construction.
- After cloning a construction, it becomes currently selected. It used to be that the construction would collide with its clone, causing stuff to fly around uncontrollably; this no longer happens.
- You can now only detach parts from frozen constructions. Given that you can only attach parts to frozen constructions, I think this behaviour is more consistent.






Made a six wheel dump truck in the game
My attempt at making a larger, more complex construction in the game. The truck has four driven wheels through differentials and a tipping load bed driven by a motor through a gear reduction. The load bed is only represented by a framework as it got too heavy when I attached plates to it, and would no longer lift (the gears would slip).
As well as being a lot of fun, building a model of this scale was useful in highlighting some issues:-
- Gears slip under high torque loading.
- Plates are a bit too heavy.
- Odd bug where axles connected by hinges would sometimes drift from their correct location after adding / removing lots of other parts, and had to be detached then reattached to put them back in the right place.
- Need more parts made from other materials, building a truck from wooden beams is a bit crappy!
Playable build – updated
This update resolves an issue with the way I was snapping parts to each other that occasionally caused them to snap together with the wrong orientation. To do this I had to change the save game format though, so unfortunately any existing save-games won’t work!
Here I’m showing how to use the new differential gear in the game.
Another dev diary demoing the new hi / lo variations of the bevel and crown gears.
Playable build – updated
Now in the game, some bug fixes and a bunch of new gears!
Hi / lo gears
There are now two versions of every bevel and crown gear, a “hi” and a “lo” version. The only difference between these two versions is where the gear is positioned along its central collar (i.e. either offset high or low along it). This effectively allows for half-unit increments for where a gear can be attached to an axle, as can be seen in these examples.

This gives a lot more flexibility for how various combinations of gears can be used with each other. The high / low naming is a bit confusing I know but I couldn’t think of a better naming scheme, I might change it if I can come up with something better.
Differential gear

In order to allow the outside wheel to turn faster than the inside wheel during a turn, rather than have a solid driving axle, most vehicles use a differential gear to split torque between the driven wheels. I’ve now implemented this in the game, it works in exactly the same way as the differential in a real world vehicle. You have to build it up by attaching axles and the planetary gears to it, as can be seen below.

Just like all the other gears, it works in a fully physical manner, so its behaviour just naturally matches that of a real world open (i.e. non limited slip) diff. If one of the driving wheels isn’t contacting the ground it will spin up without the vehicle moving; both wheels have to be touching the ground for the vehicle to get proper drive.
Next up
As I mentioned a couple of weeks ago, I was thinking I’d have to overhaul the part pairing system to allow for certain kinds of part pairing relationships (e.g. axles and gears pairing with the differential at different attachment points). Well fortunately that turned out not to be really necessary, only some fairly minor changes were required.
However, the differential gear did show up a tricky bug with the way I’m snapping the orientation of parts to each other, so that’s what I’ll be looking at fixing next. I’m also gonna put together some videos soon to demo how to use these new gears.
Here’s a dev diary vid showing the results of my work over the last few months!
Playable build – updated
Fixed update optimisations
Now that I’ve had to reduce the physics update time-step, any code in my fixed update functions is much more performance critical. So this week I tried optimising as much of it as I could. Unfortunately there weren’t really any places I could move update code out of the fixed update altogether, but I did manage to speed up a few things.
I’ll probably have to revisit fixed update performance at some point, but for now I’m gonna move onto the next thing. Next up I think I’ll look at reworking the system that determines how parts can attach together, to make it more flexible and allow for more interesting part pairing relationships. This’ll be required for some of the new parts I want to add in the future.
