the problem is that when I build the environment - the camera moves through it, that is, through mountains, houses, trees, and I need the camera not to come into contact with these objects

Ahhh, I see!

Okay, you can create a LINE_TRACE going up, and if it COLLIDES with the landscape, then the location is INVALID.

So, anytime the camera is BELOW the landscape, the game will skip to the next location OR you can TRANSLATE/MOVE the camera up by “x” centimeters.

1 Like