Forums > Jitter

two Qs about gridshape

November 3, 2009 | 10:18 am

Is it possible to have 2 or more spheres in the same window, and if yes, is it possible to track them and get their position and rotation speed?

November 3, 2009 | 11:28 am

Yes, and probably yes.

It’s not really clear what you mean by tracking. For the spheres to move and rotate you’ll need to set their position and rotation, so you can keep track of those yourself. You can also get them from the gridshape object if you need to.

— Pasted Max Patch, click to expand. —
November 3, 2009 | 11:42 am

Yeah I figured out the best way was using gj.handle a prepend set and a message…

thank you so much.

November 3, 2009 | 12:32 pm

what if I want to include some physics with gridshape objects?
like two spheres orbiting… gravity and so on?

November 3, 2009 | 1:37 pm

There is no standard physics engine in Max afaik, unless you count [jit.p.vishnu]. I don’t recall anyone built or imported one either, but i’m sure people have tried stuff. Unless what you want to do is relatively simple or you really have a good idea about physics, I wouldn’t press my luck here. I made your balls bounce:

— Pasted Max Patch, click to expand. —
November 3, 2009 | 1:54 pm

thanks again, this is interesting..

my last question is, do you know any way to make one ball orbiting around the other?

November 3, 2009 | 2:45 pm

Done. Finished your homework now? ;P

— Pasted Max Patch, click to expand. —
November 3, 2009 | 2:48 pm

ouch it crashes as soon as I paste it.. can you attach a maxpat file?

November 3, 2009 | 2:55 pm

ok ok sorry I got it thanks so much

November 3, 2009 | 6:07 pm

for physics take a look on PMPD

quite tricky but great!

good luck,

November 3, 2009 | 6:15 pm

thank you but apparently PMPD for max5 does not exist.

November 3, 2009 | 6:41 pm

peter Elsea made some nice Orbit objects Lorbit and Lspace, there are for mac only though, you can find them in the beta objects folder at :

look also for the A-objects by Andre Sier , there is [a-grav] and some physcal model objects.

November 3, 2009 | 7:58 pm


im using it with max5 and win xp.. dont know if theres for mac.

i downloaded here:


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

Forums > Jitter