Skip to content
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

PathFollow rotation inconsistent when Path contains control points in XYZ rotation mode #48864

Closed
Flamebeard10339 opened this issue May 19, 2021 · 0 comments · Fixed by #60151

Comments

@Flamebeard10339
Copy link

Flamebeard10339 commented May 19, 2021

similar (not exactly the same) as #13434 and #3713

Godot version:

Godot Engine v3.3.stable.official - https://godotengine.org

OS/device including version:

OpenGL ES 3.0 Renderer: GeForce RTX 2060 with Max-Q Design/PCIe/SSE2

Issue description:

When changing offset (or unit_offset) in PathFollow when the Path.curve has control points it (randomly?) changes the rotation of the PathFollow node.

sometimes the change is marginal. other times it can be as much as +-30 degrees. It also goes in both positive and negative directions.

This issue is completely alleviated when the rotation mode is set to oriented as opposed to XYZ

Steps to reproduce:
create a Spatial.
add a Path child
create 2+ points
add a PathFollow child
grab the offset slider and wiggle it around as wildly as you can.

you should see the translation change, but the rotation stay constant.

go back to the path and shift drag one of the points (add control points)

go back to the PathFollow and jiggle the offset slider.

Transform.rotation_degrees of PathFollow will not return to Vector3()

Minimal reproduction project:

PathFollowBug.zip

@Flamebeard10339 Flamebeard10339 changed the title Pathfollow doesn PathFollow rotation inconsistent when Path contains control points May 19, 2021
@Flamebeard10339 Flamebeard10339 changed the title PathFollow rotation inconsistent when Path contains control points PathFollow rotation inconsistent when Path contains control points in XYZ rotation mode May 19, 2021
@akien-mga akien-mga added this to the 4.0 milestone Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants