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

Playable build – updated

Playable build – updated

Playable build – updated

Playable build – updated

Playable build – updated

Collision bug update 2 – fixed!

A while back I encountered a bug in Unity where adding parts (that had a mesh collider) in a particular order to a construction would cause physics collisions between some parts to fail.  This would break the construction mechanic from then on as I rely on getting collision callbacks to know when parts are positioned appropriately for attachment.
Well, as far as I can tell this has been fixed as of the latest Unity release!  I didn’t get any update on the bug report I submitted, so perhaps it was fixed in relation to some other bug, either way it seems to be sorted now which is awesome.  Here’s hoping I don’t find any other similar issues…
But…of course there’s always something else to worry about!  I’ve recently noticed an odd behaviour where long, thin rigidbodies (such as axles) that have angular velocity around their long axis, tend to completely lose that angular velocity when rotated around other axes.  It’s like a massive braking force is applied to their rotation.  So I need to do some experimentation to figure out if there’s anything I can do to mitigate this (perhaps by fudging the inertia tensor or mass).

Playable build – updated

Playable build – updated