Forums > Gen

[jit.gen] can access to collision without [dict] ? need some help, I am stoped

Sep 04 2013 | 9:08 am

Hello all,

1 – sorry my bad english, I am getting some :)

2 – [jit.gen] can access to collision without [dict] ? I need access via [jit.matrix]

3 – I am blocked here becouse I cannot access to dictionary and sync it to [jit.gen]

4 – Thanks :)

Sep 04 2013 | 10:32 am

posting a patch will be worth a thousand words of english, good or bad.

Sep 04 2013 | 11:50 am

Thanks for the messaje Rob.

Here is a sample for my request:


Sep 05 2013 | 11:38 am

still not entirely sure what you want to achieve.
however, it doesn’t make sense to have a collisions matrix processed by jit.gen.
the dimensions of the gen matrix are equal to the number of bodies in the scene, however the number of collisions in the scene will vary every frame.

if you just want to create a matrix that has 0 or 1 depending on if a body is colliding with any other body, you could iterate the collisions dict and set the matrix cells each frame.

javascript would be useful for this.
take a look at Max 6.1/examples/jitter-examples/render/physics/

Sep 05 2013 | 3:15 pm

Thanks Rob :)

I will try Javascript.

In Lua exist a similar sample ?

Best Regards…


Viewing 5 posts - 1 through 5 (of 5 total)

Forums > Gen