phys.6dof.spring spring mass bug ?

Guillaume Bertrand's icon

Since pmpd and msd are deprecated, I'm trying to build a simple 2D spring mass model using 6dof. Moving an object around, and having a second object following the first but with mass-spring behaviour.

Unfortunately, everytime I open the phys.6dof.spring example, it works for about 4 seconds, then the tore and sphere disapears. When i try a getposition on one of the jit.phys.body i get "position nan nan nan" from the right outlet.

I get the same kind of magic disapearing with mat mat's spring patch. (from this topic : https://cycling74.com/forums/spring-behavior-in-jit-phys). If i dont touch anything, it works like a charm, but if I click on the impulse message, 4 seconds later, everything is gone.

The other phys examples work fine (even the 6dof help patch).

OSX 10.9.5 Max 7.3.5

Any idea ?


Rob Ramirez's icon

unfortunately I can reproduce. This is the first I'm seeing this behavior and I'm not sure of what's to be done to fix. I'll have a poke around and see if I can come up with a workaround.

thanks for the report.

Guillaume Bertrand's icon

I managed to do my patch from scratch without triggering the mysterious bug... For those interested in reproducing PMPD or MSD behaviour :

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

Rob Ramirez's icon

fantastic, thanks for sharing your solution.