Page 1 of 1

totimp3

PostPosted: Mon Dec 01, 2014 4:20 pm
by Kilinich
With that property you could read forces and torque applyed to hinge. Precise and fast.
totImp3 -> [fx,fy,m]
1N is 1/60 (for some reason) so just multiply result to get newtons or Nm.

Rating: rated 6.5
Filesize: 29.17 kB
Comments: 3
Ratings: 4
download

Re: totimp3

PostPosted: Tue Dec 02, 2014 10:50 am
by Kilinich
s_noonan corrected me (thanks):

_forceX = {(readable(entity)).totImp3(0) * sim.frequency}
_forceY = {(readable(entity)).totImp3(1) * sim.frequency}
_torque = {(readable(entity)).totImp3(2) * sim.frequency}

If you want get weight - multiply to gravity strength.

Re: totimp3

PostPosted: Mon Dec 15, 2014 1:33 am
by pnvv
I get the torque thing, that's cool. But the weight seems a bit pointless because couldn't you just look at information or script menu?

Re: totimp3

PostPosted: Mon Dec 15, 2014 1:43 am
by Kilinich
pnvv wrote:I get the torque thing, that's cool. But the weight seems a bit pointless because couldn't you just look at information or script menu?

Sometimes you need to get force, not weight.

Re: totimp3

PostPosted: Mon Dec 15, 2014 4:37 am
by pnvv
Kilinich wrote:Sometimes you need to get force, not weight.

Oh, I get it now.

I wonder if this could be used for a force-sensitive dummy that you could put in breakable cars and stuff. Then when you crash it, it tells you if he would have died or not.

Re: totimp3

PostPosted: Thu Feb 19, 2015 8:49 am
by zindagi
the weight seems a bit pointless because couldn't you just look at information or script menu?

Re: totimp3

PostPosted: Thu Feb 19, 2015 11:45 am
by Kilinich
zindagi wrote:the weight seems a bit pointless because couldn't you just look at information or script menu?

You couldn't use that info window data in your own scripts.

Re: totimp3

PostPosted: Mon Nov 02, 2015 10:50 pm
by JakubKubo
_forceX/Y = {(readable(entity)).totImp3(0) * sim.frequency} is that force what break hinges if it is big enough?

Re: totimp3

PostPosted: Mon Nov 02, 2015 11:08 pm
by Kilinich
JakubKubo wrote:_forceX/Y = {(readable(entity)).totImp3(0) * sim.frequency} is that force what break hinges if it is big enough?


What? No. There is impulseLimit and distanceLimit for that... totImp3 is just for reading.

Re: totimp3

PostPosted: Fri Mar 12, 2021 1:53 pm
by Kitesurfer
It's the same with totImp in springs, you need to multiply it by sim.frequency to get the current spring force.