Using jit.phys.world with jit.world?

Noah Mitchell's icon

Hello all, I am trying to use the jit.phys.world object with jit.world to control the gravity of the environment. I know that this can be done using jit.gl.render, but I would prefer to do all my work through jit.world. Perhaps someone can help me with this issue. Patch attached for reference

Jit_Phys_Question.maxpat
Max Patch

michelez's icon

you need to send the jit world a message "sendphys gravity 0. 0. 0." for gravity 0 or "sendphys gravity 0. -9.8 0." for normal gravity

Noah Mitchell's icon

Works perfectly thank you!

Alon Danan's icon

Hi,

Just tried connecting a message "sendphys gravity 0. 0. 0." To the patch attached here and it didnt work for me. Anyone has any insight?

Noah Mitchell's icon
Phys.maxpat
Max Patch

This is my basic physics world setup patch. Just double checked the gravity and it works. Make sure you click on the message or send a bang to it after you change the values.