Hello, I'm kinda new to the Starcraft 2 triggering, bought the game yesterday!
Anyway, I'm like many others making a third-person camera system, and I've run into a slight problem; The mouse-look camera goes through the terrain.
What I want is for the camera to zoom in instead of going through the ground or an object (ground being the most important). And when it doesn't detect anything at less than the set distance, revert to the original distance.
My original idea was to use tracelines to find a point behind the camera pivot and measure the distance to that point in order to determine what distance the camera should be put at, but I don't really know how to use them, let alone if it would work, and thus I ask for your help! ^^
Thanks in advance for any help!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, I'm kinda new to the Starcraft 2 triggering, bought the game yesterday!
Anyway, I'm like many others making a third-person camera system, and I've run into a slight problem; The mouse-look camera goes through the terrain.
What I want is for the camera to zoom in instead of going through the ground or an object (ground being the most important). And when it doesn't detect anything at less than the set distance, revert to the original distance.
My original idea was to use tracelines to find a point behind the camera pivot and measure the distance to that point in order to determine what distance the camera should be put at, but I don't really know how to use them, let alone if it would work, and thus I ask for your help! ^^
Thanks in advance for any help!