Hi all, i just finished this patch in which i load a text file in the form of 0s and 1s and it creates a 3d world where 0 are empty spaces and 1 are walls.
The camera can go through with simple commands: forward, turn left, turn right.
Now i’m trying to forbid the camera to enter wall spaces, i thought of clipping the coordinates in proximity of such walls. Anyone has a better/easier way?
PATCH ATTACHED WITH EXAMPLE TEXT FILE, sometimes the text file must be reset a couple of times for some reason.
this kind of thing is usually handled by a collision detection library.
fortunately, max 6 has such a library built in with the physics objects.
in addition to the collision detection, there are several new externals that will help you with this project:
i strongly recommend checking out max 6 and the aforementioned externals and physics objects.
i’ll be more than happy to assist in setting up the necessary physics objects to handle camera collision detection with the walls of your scene.