two Qs about gridshape

Nov 3, 2009 at 10:18am

two Qs about gridshape

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?

Nov 3, 2009 at 11:28am

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. –
Nov 3, 2009 at 11:42am

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

thank you so much.

Nov 3, 2009 at 12:32pm

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

Nov 3, 2009 at 1:37pm

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. –
Nov 3, 2009 at 1:54pm

thanks again, this is interesting..

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

Nov 3, 2009 at 2:45pm

Done. Finished your homework now? ;P

– Pasted Max Patch, click to expand. –
Nov 3, 2009 at 2:48pm

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

Nov 3, 2009 at 2:55pm

ok ok sorry I got it thanks so much

Nov 3, 2009 at 6:07pm

for physics take a look on PMPD

quite tricky but great!

good luck,

Nov 3, 2009 at 6:15pm

thank you but apparently PMPD for max5 does not exist.

Nov 3, 2009 at 6:41pm

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.

Nov 3, 2009 at 7:58pm


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

i downloaded here:



You must be logged in to reply to this topic.