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

Path3D Curve Tilt lerped incorrectly #100627

Open
jitspoe opened this issue Dec 20, 2024 · 0 comments
Open

Path3D Curve Tilt lerped incorrectly #100627

jitspoe opened this issue Dec 20, 2024 · 0 comments

Comments

@jitspoe
Copy link
Contributor

jitspoe commented Dec 20, 2024

Tested versions

v4.4.dev7.official [46c8f8c] (happens in earlier builds as well)

System information

Godot v4.4.dev7 - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 32.0.15.6603) - AMD Ryzen 7 3700X 8-Core Processor (16 threads)

Issue description

When using the tilt aspect of a spline it seems to have a very abrupt turn in and out, so I graphed out the values and noticed that the up vector is directly lerped, but really the angle should be lerped.

Image

This is from a path where the tilt goes from 0 to 180 degrees. The red line is a graph of the up.y. The orange is a graph of the angle. Note how the angle slope jumps up, flattens out, then jumps up again at the end in kind of an S shape.

Steps to reproduce

Add a Path3D. Add 2 points. Rotate the tilt on the end point. Have something follow the path and note that the rotational speed is inconsistent while traveling the path.

Minimal reproduction project (MRP)

test_spline_up_lerp.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants