Merge pull request #69660 from xiongyaohua/fix_path2d_fish_bone_direction
Fix Path2D fish bone direction
This commit is contained in:
commit
f9aea4d940
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ void Path2D::_notification(int p_what) {
|
|||
Transform2D *w = frames.ptrw();
|
||||
|
||||
for (int i = 0; i < sample_count; i++) {
|
||||
w[i] = curve->sample_baked_with_rotation(i * interval, true);
|
||||
w[i] = curve->sample_baked_with_rotation(i * interval, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -941,7 +941,7 @@ Transform2D Curve2D::_sample_posture(Interval p_interval) const {
|
|||
const Vector2 forward = forward_begin.slerp(forward_end, frac).normalized();
|
||||
const Vector2 side = Vector2(-forward.y, forward.x);
|
||||
|
||||
return Transform2D(forward, side, Vector2(0.0, 0.0));
|
||||
return Transform2D(side, forward, Vector2(0.0, 0.0));
|
||||
}
|
||||
|
||||
Vector2 Curve2D::sample_baked(real_t p_offset, bool p_cubic) const {
|
||||
|
|
Loading…
Reference in a new issue