Skip to content

Assign target to follow in "Framed" mode #223

Closed Answered by ramokz
woyosensei asked this question in Question / Help Wanted
Discussion options

You must be logged in to vote

Not a basic question at all!

Normally, you can assign a follow target using the setter method: pcam.set_follow_target_node(your_follow_target)

However, due to bugs with this particular follow mode, it will not work particularly well when done so via code. Partly because the distance offset is only being calculated in the editor and the reframing bugs out unless the target is within the dead when you assign the follow target. You can get around it by manually offsetting the PCam3D's position and rotating it towards where the follow target will be right before you assign the follow target.

It's one of the things planned to be properly addressed in #161

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@woyosensei
Comment options

Answer selected by woyosensei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants