|
Post by halagame on Dec 14, 2020 11:05:21 GMT
Hi, I'm using ApplyInfluence() method to change camera influence and it works seamlessly, but I have an issue when I'm trying to acheive following action.
I'm trying to move the influence to a given upper offset when player press "W" button, something like a "look up" action it works but if I have enabled "Camera Windows" and the height is greater than 0, once player released the "W" button, it does not return back to the origin point
So I write a reset script to get the CameraWindow height float, and once the player press the "W", it sets the height to 0 temporally, and once the button "W" is released, it resets back to whatever the origin value
The problem is the influence takes time to get back to its origin position if there's a smoothness setting in ProCam2D main script If I trigger the reset method right after GetKeyUp, the influence point won't get back to original position. Unless I add some delay to match the smoothness
My question is that is there anyway to determine when the camera is fully reaches its influence in runtime? tks
|
|
|
Post by Luís Pedro Fonseca on Dec 19, 2020 22:21:50 GMT
halagame Sorry for the late reply. Unfortunately at the moment there isn't a way to detect that. Have you managed to solve the problem somehow?
|
|
|
Post by halagame on Dec 26, 2020 11:02:58 GMT
currently I get the smoothness float and manually apply it in the coroutine, something like yield return newWaitForSeconds(smoothness_float), and once it's finished then I start executing other logics it is working but just doesn't seem a good solution if I can handle it natively (something like OnInfluenceEnd, OnInfluenceStart) lol
|
|
|
Post by Luís Pedro Fonseca on Dec 26, 2020 14:05:52 GMT
halagame I see. I'll see what I can do about that in the upcoming updates.
|
|