I'm an ex-long time "AAA" game programmer, now solo indie developer making GearBlocks, a game all about creative building, interactive machines, and gears - lots of gears!

RSS My Blogs

GearBlocks 8797

dangersam Blog

Hey everyone, time for a long overdue update!

Combustion Engines - Not Ready Just Yet

By this point, I was hoping to have combustion engines done. I tried a purely physics based approach, using separate cylinder, piston, con-rod, & crank rigidbodies, and applying a force to the piston based on the current angle of the crank. This worked reasonably well, but had problems with "phantom forces" whereby the engine got torque applied to it, sometimes flipping over the vehicle it's in. Also, using physics for all the parts like this has RPM limitations, and doesn't scale that well for sim performance.

So I've decided to change tack slightly, I still want to keep the appearance of the moving parts (i.e. pistons and con-rods), but my plan is now to procedurally animate these in code. There's not really any need to use physics as these parts can't collide with anything when inside an engine. To apply torque to the crankshaft, I'm working on something similar to the electric motors, but with a different torque curve.

Hopefully I'll be able to get this done soon, but in the meantime I thought it would be good to get a small update out. Here's what's in it...


There are now some slider versions of the 1-Hole and 2-Hole connectors, some new "angle axle" connectors, and a larger centrifugal clutch.

Also, the rounded beams can now be resized one unit smaller than before.

Part Behaviours

I've improved how the invert option works for parts with a single key bind (e.g. brakes), adding a separate invert option for the joystick axis.

You can now type in values for any part behaviour slider, by right clicking it. Even values beyond the normal slider range can be entered (but no guarantees the physics won't blow up with higher RPMs or torques!)

No Collide Tool

For those who want to bypass part collisions in their builds, I've added a new "PartCollision" script mod tool that can be used to disable part collisions. Parts with their collision disabled will still collide with the ground, but nothing else.

Here are the full release notes:-

  • New parts:-
    • "1-Hole Slider" and "2-Hole Slider" connectors.
    • Angle axle 90, 180, 3 x 90, & 4 x 90 connectors.
    • Centrifugal clutch x3.
  • Rounded and half rounded beams can now be resized one unit shorter.
  • Added "invert axis" option to part behaviour joystick axis settings.
  • In brake, clutch, and differential part behaviours, replaced "invert direction" option with "invert control", which properly inverts their control behaviour.
  • By right clicking a slider in the part behaviour settings, it's value can now be edited by typing in a number.
  • Shortcuts (Ctrl+C and Ctrl+V) for copy and paste in part behaviour settings.
  • A construction can now be unfrozen (via the construction UI) while the player is seated in it.
  • Lowered minimum mouse sensitivity values.
  • Added methods to IConstructionOperations to set whether parts are collidable (and added IsCollidable property to IPart interface).
  • Added new PartCollision script mod.
  • Bug fixes.
  • Upgraded to Unity 2021.3.34.
GearBlocks 0.7.8754

GearBlocks 0.7.8754

dangersam Blog
GearBlocks 0.7.8740

GearBlocks 0.7.8740

dangersam Blog
GearBlocks 0.7.8726

GearBlocks 0.7.8726

dangersam Blog
Start a group Groups
Indie Devs

Indie Devs

1,716 members Hobbies & Interests

A group dedicated to indie and standalone game development.

Unity Games

Unity Games

1,862 members Fans & Clans

For all Unity developers and developers-to-be, both beginners and professionals!



578 members Arts & Literature

For us folks who like to stay Free and use the Blender 3d program over every other costly options!

SmashHammer Games

SmashHammer Games

1 member Developer & Publisher

Indie developer of GearBlocks - a game about creative building, interactive machines, and gears - lots of gears.

clashka43 - - 3 comments

I really would like to add something to the game. For example, new part) Just how to do it, I don't know(

Reply Good karma Bad karma+1 vote
clashka43 - - 3 comments

Hi sam! I very like you game)

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.


Latest posts from @dangersamn

Quite a few fixes and improvements have accumulated since the last demo update, so I decided it was worth releasing… T.co

Jun 8 2023

RT @GearBlocksGame: The model train gets even better, the track now has points!🤯A GearBlocks demo player creation. #indiegamesT.co

Jun 5 2023

RT @GearBlocksGame: Some very nice looking tank tracks in this GearBlocks demo player creation. #indiegames #indiedev #madewithunity T.co

May 30 2023

RT @GearBlocksGame: Love this "scale model" train a player made in the GearBlocks demo. #indiegames #indiedev #madewithunity T.co

May 25 2023

RT @GearBlocksGame: This GearBlocks demo player creation is ready for some heavy duty off-roading. #indiegames #indiedev #madewithunity T.co

May 22 2023

GearBlocks dev blog update - new map, and tutorial finished Dangersam.tumblr.com #indiedev #gamedevT.co

May 20 2023

RT @GearBlocksGame: Ready to go camping for the weekend. GearBlocks demo player creation. #indiegames #indiedev #madewithunity T.co

May 19 2023

RT @GearBlocksGame: Taking the van for a drive... T.co

May 18 2023

RT @GearBlocksGame: A GearBlocks demo player creation that uses gears at an angle to make a steering mechanism. #indiegames #indiedevT.co

May 17 2023

RT @GearBlocksGame: Another view of the solid axle suspension, that's some body roll! T.co

May 11 2023