Page 1 of 1

Hinge's current torque

PostPosted: Fri Sep 11, 2015 8:16 am
by Cathier
Image

Hello, Algodoo users!
I actually made a forum account just to ask this question.

Is there a way to extract current motor torque from a hinge using code? I can think of a lot of applications for this, most importantly ultra simple dyno.

I haven't found anything in the documentation nor in the forums using search function. I guess it's okay if it's not possible but it would be kinda disappointing :/

Re: Hinge's current torque

PostPosted: Fri Sep 11, 2015 8:51 pm
by Luka
Motor torque? I think impossible to extract.
Please wait until someone like Kilinich or Xray tells you something. Still I think not possible.

Re: Hinge's current torque

PostPosted: Fri Sep 11, 2015 9:45 pm
by homieeee
Put this in "update" on the hinge it will display just as you have underlined.

Code: Select all
_torque = ((readable(owner)).totImp3)(2) * sim.frequency

Re: Hinge's current torque

PostPosted: Fri Sep 11, 2015 11:11 pm
by Cathier
homieeee wrote:Put this in "update" on the hinge it will display just as you have underlined.

Code: Select all
_torque = ((readable(owner)).totImp3)(2) * sim.frequency


Thank you very much kind sir! I'll go make my scenes right away :)