rotate a group of jit.gl.phys objects

kugelschreiber's icon

Hello phys pros,

I am trying to rotate a group of jit.gl.phys objects.
Patch attached.

First i tryed to build a jit.gl.node, but
i cant bind the jit.gl.phys objects to the jit.gl.node.
I get this error at the max window:"jit.gl.node: attached object is not an ob3d"

Is there a possibility to group jit.phys.body objects ?

Or can the jit.phys.body follow the jit.gl.node objects ?

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

Thanks for any pointer,
kugelschreiber

Rob Ramirez's icon

hello.
you can only add gl objects to jit.gl.node.
you want to use jit.anim.node for this behavior. you also want to enable @kinematic on your phys.bodies if you are going to manually update their position/rotate attributes.

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

here's a modified version of your patch: