When changing follow target node, if I try to change spring arm length it does nothing. #215
-
Hi, Love the plugin by the way. I was just wondering about the orbitational rotation on targets. I wanted to make the camera angled just like in league of legends for example and be able to rotate around my player. This was tricky but I was able to do it if I setup the look at target in the inspector and add an offset on the follow target. Then when I'm happy with the position I can delete de look at mode and reset my follow offset. This keeps the position of the camera where I want to and also without any bugs on rotating all around it. Together with this setting I also linked the spring arm length to the mouse wheel so I can zoom out and in on the player. Now, I'm making the same system but for vehicles, I setup a new camera just the same way as I setup for the player. But in this case we have alot of vehicles so I'm updating my follow target accordingly. My problem is, when I update the follow target node, my camera position resets to 0 basically (only keeps the initial rotation) and my spring arm length "zoom function" doesn't do anything. I tested out by printing the spring arm value and it is being updated but it just doesn't make a difference after updating the follow target. If I start the game with the vehicle camera first, everything works correctly. Can I get any help with this please ? 2024-02-08.01-24-03.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
P.S: I dont leave the look at mode On because when I'm orbiting around the target, if the look at is On it stutters a bit due to the immediate action of the look at function. |
Beta Was this translation helpful? Give feedback.
-
Assigning a Two things to try out at first:
Also, just to sanity check, which addon version are you using? |
Beta Was this translation helpful? Give feedback.
-
Holy it worked ! Thank you so much. But by the way, why this effect with the collisions ? |
Beta Was this translation helpful? Give feedback.
Assigning a
follow_target
to a Third PersonPCam
a few seconds into the game starts seems to work fine in the scene I'm testing in.Two things to try out at first:
Collision Mask
layers, in your case just no. 1, does that change anything?Also, just to sanity check, which addon version are you using?