Notes made after creating a spring for a game element in my current Unity project. The process itself isn’t too complicated & the results are pretty nice.
These notes probably won’t be useful for anyone other than myself. I’m planning on building models as required, rather than in one lump – Which means I’ll forget everything in the meantime & have to relearn every model I build – To avoid this as much as possible, I’m hoping to use these posts as a reference point.
Apologies for any obvious mistakes or omissions – These notes were made as I was learning, and not necessarily as I had learnt.
First the ‘Add Mesh: Extra Objects‘ add-on needs to be enabled – This is used to add a single vertices later in the process.
To do this – goto File->User Preferences
This should open the ‘Blender User Preferences‘ window
From here click Add-On’s tab at the top of the window and search for ‘Extra Objects‘
Add a tick to ‘Add Mesh: Extra Objects‘
& everything is done.
Next add a circle – this circle will be used by blender to create the body of the spring;
Once created – scale the circle to the desired thickness of the spring
since the spring will coil around the XY axis – the circle needs to be rotated by 90 degrees on the x axis
In this example – the spring will be generated/coiled around the central point (position 0, 0, 0).
The radius of the spring will be determined by how far the circle is moved along the x axis
Now to add a single vert – this is used to determine the centre of the spring
Make sure the circle is selected.
Press shift-A to open the add menu
From here select – Mesh->SingleVert->Add Single vert
this will add a single vertices at position 0, 0, 0
The mesh and circle need to be ‘joined‘ creating a single object;
Go to ‘object mode‘ (bottom half of the screen – right of the Object menu)
right click the circle
hold shift and right click the single vert
this will select both elements at the same time
hold ctrl-J – this will join the two objects
it will also move the axis point to the middle of the world (position 0, 0, 0)
Next the screw tool is used to generate and define the spring – but first it is needed to create a doughnut;
On the right hand side of the screen in the click the spanner icon
this will open the modifiers section
click ‘Add modifier‘
and from the list select ‘Screw‘
this should apply the ‘Screw Modifier‘ to the circle
Construct the spring from the doughnut;
In the ‘Add Modifier‘ ‘Screw‘ settings;
to set the scale of the coil – change the value in the ‘Screw‘ section
this will determine how much the coil rises each 360 degree rotation
set the number of coils – change the value in the ‘Iteration‘ parameter
this will termine the size of the spring – the number of coils used to make up the spring
the steps parameter determines how many angles are used to build each coil
the default is 16 – since I generally work with low poly game elements I’m moving this down to 8
make sure ‘click order‘ option is selected to make sure the spring is drawn nicely
That should create a simple spring.
if thats all you need – click ‘Apply‘ in the modifiers box to set the values chosen & move on (maybe close the ends of the spring?)
if you want to animate the spring – DON’T click ‘Apply‘ quite yet… go to the next post (link below) and continue from there…
Next post: 1.6 Animating a basic spring