I'm trying to make a third person map that uses the wasd keys to move relative to the camera, which the player rotates with the mouse. The problem I'm having is getting the camera to follow the unit.
One way I've tried is simply having pan camera fire every 0.25 seconds. Problem here is that while it is panning the user cannot rotate the view.
The next way is to pan the camera every .02 seconds, and make the pan instant so they can always rotate the view. Well that solves that problem but introduces another: now the camera follows the unit, but it's really choppy, not nice and smooth.
The best way I've found so far (but by no means ideal) is to simply use the "follow unit group" action. This smoothly follows the unit while at the same time allowing the user to rotate the camera with the mouse. Problem solved right? Wrong. Whenever I rotate the camera, it feels like some sort of weird flying sensation. The camera target doesn't stay rooted to the unit, distance to target seems to be completely disregarded.
I'm trying to use a custom game camera to get this to work. (I mean, via the data editor, you know)
I should add that this would solve hundreds of problems that we encounter on a daily basis, especially for flight simulation (unless you want it choppy).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
I'm trying to make a third person map that uses the wasd keys to move relative to the camera, which the player rotates with the mouse. The problem I'm having is getting the camera to follow the unit.
One way I've tried is simply having pan camera fire every 0.25 seconds. Problem here is that while it is panning the user cannot rotate the view.
The next way is to pan the camera every .02 seconds, and make the pan instant so they can always rotate the view. Well that solves that problem but introduces another: now the camera follows the unit, but it's really choppy, not nice and smooth.
The best way I've found so far (but by no means ideal) is to simply use the "follow unit group" action. This smoothly follows the unit while at the same time allowing the user to rotate the camera with the mouse. Problem solved right? Wrong. Whenever I rotate the camera, it feels like some sort of weird flying sensation. The camera target doesn't stay rooted to the unit, distance to target seems to be completely disregarded.
I'm trying to use a custom game camera to get this to work. (I mean, via the data editor, you know)
@LazyCoder: Go
I have encountered the same problem, there seems to be no way of changing the distance to target to zero.
@EdwardSolomon: Go
I should add that this would solve hundreds of problems that we encounter on a daily basis, especially for flight simulation (unless you want it choppy).