2d collisions/overlap in 3d world

Jun 21, 2012 at 12:13pm

2d collisions/overlap in 3d world

Hi all

I try to realize a 3D world in which I can detect collisions/overlap between multiple objects on my 2D perspective

I went through the forum but failed to find information allowing me to move forward

I search method to realize this and hope to find help

Thanks

Attached patch:

– Pasted Max Patch, click to expand. –
#46073
Jun 21, 2012 at 3:44pm

you want detect collision in 2D only ? it would mean you’ll have a projection plane where you’d have to detect collisions right?

I’d go to a matrix with all x,y,z of each spheres and a jit.gen to process a collision test for each frame.

This java/processing code is very efficient :
http://processing.org/learning/topics/circlecollision.html
You can probably inspire yourself from it if you want to make it in a 2D plane only.

#165955
Jun 21, 2012 at 5:53pm

hi touk. max 6 has a built in collision detection engine with the jit.phys.* objects.

check out the jit.phys.world object, and search the forum for some posts on handling collisions, and simulating in 2D.

if this seems like what you’re looking for, post back here with some questions.

#165956
Jun 22, 2012 at 10:51am

Thank you for your answers

I tested solutions with objects * jit.phys without good result

to be more specific I am looking to reproduce the mechanical detection of video games [child of eden = http://www.youtube.com/watch?v=_8AkXlfsFqw
(maybe I’m on the wrong track according to what I have stated on my last post, what’s more I do not have a great technique for opengl)

this being I’m still looking …

I wonder if there is a method to detect the superposition of my objects as visible pixels to the screen to capture the IDs of my objects collide ?

#165957

You must be logged in to reply to this topic.