phys.body velocity?

Apr 10, 2012 at 11:52am

phys.body velocity?

hi all

im wondering if theres an in-build way to know the velocity of a phys.body?

thanks!

#62874
Apr 10, 2012 at 4:30pm

not currently, but it’s really easy to calculate.
it may find it’s way as an attribute in a future release:

– Pasted Max Patch, click to expand. –
#226974
Apr 12, 2012 at 8:36pm

hi Robert!

great to have it as an attrib in the future..

folowing with your patch, im getting wrong values, dont know how to say it in english, but like interferences… doing something wrong?

thanks!

– Pasted Max Patch, click to expand. –
#226975
Apr 12, 2012 at 9:43pm

well, velocity is a vector, so perhaps you want the magnitude of the velocity (speed).

– Pasted Max Patch, click to expand. –
#226976
Apr 23, 2012 at 5:33pm

ouh yes,, more precise, now you see why i ask for the attribute.. ;)

even do if i change the qmetro from 5 to 20 in your patch im getting also glitching values, but i find (dont ask how) that changing fixedtimestep to 50 or maxsubsteps to 2 fix the issue. :-?

so seems important to match the overall fps with those settings… ?

thank you very much!

#226977

You must be logged in to reply to this topic.