Torsion Spring

Post your tutorials here.

Torsion Spring

Postby darkfrei » Fri Sep 19, 2014 1:51 pm

I have a Torsion spring with variable spring rate.
0° - 0 Nm
5° - 102 Nm
10° - 260 Nm
15° - 475 Nm, and done 745, 1070,
And by 30° I have1450 Nm and end of curve.

How to make it in Algodoo?
darkfrei
 
Posts: 1
Joined: Fri Sep 19, 2014 1:06 pm

Re: Torsion Spring

Postby Kilinich » Mon Sep 22, 2014 8:23 pm

Script for hinge motor.
You could get angle between objects and apply torque according to it.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Torsion Spring

Postby Jimmyfisherman » Thu Oct 02, 2014 9:26 pm

Maybe you could use a bend hinge.
In the script menu for the axle:
bend = true
bendConstant = (Enter a value for the strength in Newton Meters)
bendTarget = (Enter a value in radians for where the hinge tries to move. This is like Target Length)
motorTorque = +inf (This keeps the hinge from slipping while it is being bent. Lowering this value makes it act like a spring and a hinge at the same time)
Jimmyfisherman
 
Posts: 18
Joined: Thu Oct 02, 2014 9:20 pm


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron