Forums > Jitter

Spring behavior in jit.phys?

March 4, 2014 | 5:38 am

Hi everyone,

I remember I made a spring-like behavior in PMPD a few years ago, but I can’t find the patch. And, actually, I would prefer to work with native objects.

So any ideas how I can do this using jit.phys objects?

Thank you!
ygr


March 4, 2014 | 5:44 am

What I mean, for example, is to have 2 objects that have a stable distance between them. Object 1 is fixed. The other (object 2) you have to grab it and stretch the distance between the tho. Once you let object 2 go, it will come to the initial position, bouncing a bit left and right, thus simulating how a spring would move.


March 4, 2014 | 9:38 am

hi,
something like that :)
or check "phys.6dof.spring.maxpat" /jitter-examples/render/physics

<code>

– Pasted Max Patch, click to expand. –

</code>


March 4, 2014 | 11:33 am

;)) WOw!!! I am amazed! I was asking for the spring behavior and you gave me an actual spring!

It’s really more than enough in the truest sense. ;))

Thank you so so much!


Viewing 4 posts - 1 through 4 (of 4 total)