Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Shapes3d and collision.

$
0
0

The problem should be more simple than in other 3d situations. I have a series of Boxes (let's say like tables in a room) and a series of moving and rotating boxes like panels hanging in the room, and floating some cm on the floor. So, geometries are simple and also the bottom face of the panels will always intersect the 'tables'. so far I think I can use a simple way to look for a collision, which is checking if one of the four bottom panel vertex is inside the base of any table. It should be fast enough, but can you tell me if the box vertices in shape3d library have an ID number or something to refer to having its X and Y(Z) position, so to avoid calculating on my own the position of the 4 vertex in every moment? Or maybe someone can suggest a better way to check for collision in a situation like this?

Thanks, Davide.


Viewing all articles
Browse latest Browse all 2896

Trending Articles