I am using a script called “extended flycam” to provide X, Y, and Z movement and it works REALLY well - except for one major problem that I cannot seem to fix: MY FPS controller, when I am using the extended flycam script, goes right through objects, or through the terrain object even if I check the “is trigger” box. I have tried attaching a rigid body to the FPS - tried EVERYTHING I can think of. When I disable the “Extended Flycam” script everything is normal and my FPS does not pass through objects/terrains/trees/etc. but when I enable it the problem returns. Can anyone help? It seems obvious that the “extended flycam” script is written without code to prevent pass-through of objects, but I do not know what code I might add so that “extended flycam” will be be prevented from flying RIGHT THROUGH objects! Any help would be GREATLY appreciated!
If the script does manually change or translate the position of the transform then you must add code that makes Raycast in the Update to prevent it from going through other non-trigger colliders.