-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify PathFollower's h/v offsets to a single Vector2/3 #64808
Conversation
0588ce6
to
1a4bb4b
Compare
I think this shouldn't be a Vector2. Vector2 gives an impression that it's an absolute offset, while it is not. It's relative to the curve, so e.g. offset of
|
I do agree, to some extent. At the same time, however, it does make Vector math using these properties a little more laborious than it should probably be. Maybe another name for an unified "offset" can be found, or the documentation of this new property could state "The relative offset along the curve"...? Regardless feel free to share the thought in the proposal, too. |
What if we group the offset properties with
|
I would favour a single Vector2/3 so |
I mean they would be grouped:
This would make the names 100% clear on purpose, but I agree that someone might find the names hard to understand. Especially "perpendicular" is not used very often. |
1a4bb4b
to
d47d5ae
Compare
In the meantime, this PR has been rebased and updated to call it
What I did mean is, for PathFollow3D, what would be the name of the third property to go along with the other two? |
Maybe |
For PathFollower2D and PathFollower3D: `h_offset` and `v_offset` -> Vector2 `relative_offset`. Support third dimension for PathFollower 3D, as well.
d47d5ae
to
a9310c9
Compare
+1 for offset_forward and offset_side |
We discussed this in the production team. It's too late for such compat breaking renames for consistency/clarity unless they're motivated by very clear usability issues which many users support. This doesn't seem to the case here, so closing. |
Closes godotengine/godot-proposals#5104 (comment).
As brought up in #54161 (comment).
If the original name of PathFollower2D and PathFollower3D's
offset
is changed, it can be brought back to reunite two properties, as can be argued should've been the case quite some time ago.And as a bonus, it's now a Vector3 for PathFollower3D!
For PathFollower2D and :
h_offset
andv_offset
-> Vector2relative_offset
PathFollower3D
h_offset
andv_offset
-> Vector3relative_offset
(forward and back included)Depends on #64804 to be merged first.