jit.phys "looped" snake pit

    Jun 06 2013 | 7:42 pm
    hi list,
    i would like to make a "looped" snake pit, starting from Ben Bracken nice example (https://cycling74.com/tutorials/00-physics-patch-a-day/), but I faild to do it with jit.phys.multiple.
    I managed to get something working with separate bodies, but this does not feels handy, and the FPS get quite low...
    I can imagine this may be better optimized when using jit.phys.multiple, but the snake get stucked when I make the 2 ends meet (see patch below).
    I guess I must set some values in the internal constraint matrix, but cannot really find how... Is there a documentation on that somewhere ?

    • Jun 07 2013 | 7:02 pm
      you can close the snake by creating an external jit.phys.6dof (or whatever constraint) and setting the @body1 and @body2 attributes to the name of the first and last phys.multiple instances.
      you should give your phys.multiple a name, like @name snake. then send to your new phys.6dof: @body1 snake_0, @body2 snake_9