Using jit.phys.world with jit.world?

Noah Mitchell's icon

Noah Mitchell

12月 18 2018 | 9:14 午後

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

michelez

12月 18 2018 | 9:51 午後

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

Noah Mitchell

12月 19 2018 | 6:10 午後

Works perfectly thank you!

Alon Danan's icon

Alon Danan

10月 19 2024 | 5:48 午後

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

Noah Mitchell

10月 19 2024 | 6:09 午後

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.