two Qs about gridshape

Giorgio's icon

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?

Bas van der Graaff's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.

Giorgio's icon

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

thank you so much.

Giorgio's icon

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

Bas van der Graaff's icon

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:

Max Patch
Copy patch and select New From Clipboard in Max.

Giorgio's icon

thanks again, this is interesting..

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

Bas van der Graaff's icon

Done. Finished your homework now? ;P

Max Patch
Copy patch and select New From Clipboard in Max.

Giorgio's icon

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

Giorgio's icon

ok ok sorry I got it thanks so much

carsol's icon

for physics take a look on PMPD

quite tricky but great!

good luck,
o

Giorgio's icon

thank you but apparently PMPD for max5 does not exist.

(karrrlo)'s icon

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 :ftp://arts.ucsc.edu/pub/ems/Lobjects/

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

carsol's icon

hi,

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

bye,
o