Skip to content

CSGPolygon in Path mode does not take the curve's tilt property into account #65634

Closed
@AzedaxenSoftware

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:
expected
However, this is the actual resulting shape:
actual

Steps to reproduce

  1. Create a Path node and give it a Curve with some points. Assign a tilt to these points.
  2. 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.

Minimal reproduction project

csgpolygon_tilt.zip

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions