Description
Godot version
3.5.stable
System information
Pop!_OS 22.04
Issue description
When using a CSGPolygon in Path mode, the resulting geometry does not use the tilt
property of the given Curve's points. This happens even when the polygon's Rotation Mode is set to PathFollow. PathFollow nodes do follow the tilt of a curve when their Rotation Mode is set to Oriented, so this behavior seems inconsistent.
In this example, I have a straight curve with two points; the first one with a tilt of 0 degrees, and the second with a tilt of 180 degrees. In this case, this is the expected shape:
However, this is the actual resulting shape:
Steps to reproduce
- Create a Path node and give it a Curve with some points. Assign a tilt to these points.
- Create a CSGPolygon node and set its mode to Path. Assign the previously created Path node to the CSGPolygon's Path property.
The repro project contains a scene with a Path, a CSGPolygon and a PathFollow node, along with some primitive meshes to visualize the tilt of the curve's points. Both the CSGPolygon and the PathFollow are assigned to the same Path node, which has the same curve that was detailed above. By adjusting the PathFollow's offset, you can see how it rotates along the curve. Notice how the CSGPolygon is shaped as if the Curve has no tilt.
Activity