jit.phys.body for jit.gl.model

foobert's icon

is is possible to generate a jit.phys.body for jit.gl.model to create collision detection for imported models? to me it looks, that currently only jit.gl.gridshapes are supported. is there any way to create physics/collision for more complex objects?

Rob Ramirez's icon

yes this is possible, however a bug slipped in to the current version of gl.model matrixoutput, so you will have to wait for the forthcoming 6.0.1 update to try out this feature.
once that update is out, you can look at the jit.phys.body help file to see how to send a gl.model shape to a phys.body.

thanks for your patience.

foobert's icon

hello robert!
is there an estimated timeframe on when 6.0.1 will be released?

foobert's icon

ok after trying the phys.body in the 6.0.1 bugfix release, it seems the body is not the actual model data, but limited to basic objects still... is this true or am i doing something wrong?

Rob Ramirez's icon

what are you trying?
- open the phys.body help file and enable qmetro in the "basic" tab
- select the "matrix" tab, and click the message box labeled 1
- send a matrix to the phys.body by clicking the bang button connected to the gl.model object

you should see an apple shape bouncing around in the scene.

let me know if that's not the case or if you have specific questions.