Modelling physical behaviour of a knob in Max

Sym's icon

Hey Guys,

I'm working on a user interface with a knob on an xy pad.
My goal is for example to have the Knob on the Nodes object follow the mousemovement user in a physical way.
So that it's not directly under the mouse but follows it.

I got some results using line~ and curve~ but wondered if you have some more complex examples by hand.

Thanks,
Imbie

Roman Thilenius's icon

everything what can be programmed can also be described (more concrete than "in a physical way"). so describe it.

besides line~, slide~, lowpassfilters and tapout~ could be your friends for now.

-110

Sym's icon

thanks roman, ultimately I want to programm some behaviour like the multiball object on lemur.
so if you move the knob and release it it will continuing on moving depending on the speed you moved it, if it hits the border of the object it will bounce back from it and so on.

I'm sure this can be done in max, but I think it's a very complex task.

wednesdayayay's icon

you would be using friction and gravity which are pretty well presented in the application corners if you feel like doing some patch digging

the xy markov player will simply play back what you have presented in varying probabilities/speeds

for more gravity/friction examples search this forum.

Sym's icon

thanks, that helped a lot!

Roman Thilenius's icon

then also look into the pmpd objects.

it will save you some work compared to creating your own code since it i already 2d.

-110