phys.body velocity?

carsol's icon

hi all

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

thanks!

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

carsol's icon

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?

Max Patch
Copy patch and select New From Clipboard in Max.

thanks!

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

carsol's icon

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!