3D Collision Detection

Hello.
Could anybody please help me? I Want to know, how I can check collision detection of a First Person Camera and a cube. ::slight_smile: Thanks in advance :slight_smile:

You could simply apply 2D AABB rules to 3D room (simply add another dimension variable…)
But that only works if you only have AABB’s.

If you want arbitrary Polygons:
Use SAT 3 times. Project the 3D Shape into all directions to create 2D shapes out of them, make them convex, and check if ALL those shapes pass the SAT test.

Hi

I wrote something about that here in the section “Improvement of collisions detection”. matheus’ suggestion is a good and simple start. If you plan to use a first person camera in a first person shooter, you will discover this is a bit more complicated…

here/ doesn’t really help :wink:

Thanks, I’ve just fixed the link.