mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
Merge pull request #79355 from pidogs/master
Make CSGShape follow curve's tilt in Path mode
This commit is contained in:
commit
5aaaf76a87
@ -1933,7 +1933,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
|
||||
case PATH_ROTATION_PATH:
|
||||
break;
|
||||
case PATH_ROTATION_PATH_FOLLOW:
|
||||
current_up = curve->sample_baked_up_vector(0);
|
||||
current_up = curve->sample_baked_up_vector(0, true);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -2020,7 +2020,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
|
||||
case PATH_ROTATION_PATH:
|
||||
break;
|
||||
case PATH_ROTATION_PATH_FOLLOW:
|
||||
current_up = curve->sample_baked_up_vector(current_offset);
|
||||
current_up = curve->sample_baked_up_vector(current_offset, true);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user