diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-14 11:25:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-14 11:25:55 +0100 |
commit | 45edf35f8325d6146762c559f1598c135981394a (patch) | |
tree | 1f0774e27e7934ff24e89a999c7d09716a39a978 /scene/resources/curve.h | |
parent | b99bbcc4361d52b31521b99baef35fcd6abc12ff (diff) | |
parent | adeef12b12a9852ec24fa06a145655524816145f (diff) |
Merge pull request #69726 from xiongyaohua/tweak_curve
Handle corner cases for curve baking
Diffstat (limited to 'scene/resources/curve.h')
-rw-r--r-- | scene/resources/curve.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/curve.h b/scene/resources/curve.h index ea3ceabb14..26608c47cd 100644 --- a/scene/resources/curve.h +++ b/scene/resources/curve.h @@ -178,6 +178,7 @@ class Curve2D : public Resource { void mark_dirty(); + static Vector2 _calculate_tangent(const Vector2 &p_begin, const Vector2 &p_control_1, const Vector2 &p_control_2, const Vector2 &p_end, const real_t p_t); void _bake() const; real_t bake_interval = 5.0; @@ -261,6 +262,7 @@ class Curve3D : public Resource { void mark_dirty(); + static Vector3 _calculate_tangent(const Vector3 &p_begin, const Vector3 &p_control_1, const Vector3 &p_control_2, const Vector3 &p_end, const real_t p_t); void _bake() const; struct Interval { |