GreatOdds / Stairs3D

Addon for creating procedural stairs in Godot Engine
MIT License
29 stars 1 forks source link

Feature request: Option to add an invisible slope to the stairs. #2

Closed sc0ttj closed 5 months ago

sc0ttj commented 5 months ago

Firstly, great plugin! Thanks!

Can you please add a checkbox to the Inspector (right-hand menu) that, if ticked, also generates an invisible slope along the path, along with the stairs?

That would make the CSGStair nodes generated immediately usable by player controllers that have basic/naive stair handling (like mine!).

(I tried myself, and was hoping to have a PR, but I can't seem to get my head around it at all tbh!)

GreatOdds commented 5 months ago

The plugin currently uses a CSGMesh3D to show the mesh and provide collision (simply ticking use_collision).

To make the collision shape different from the visual, we would need to have a separate StaticBody3D with its own CollisionShape3D and a separate function to generate the collision shape.

GreatOdds commented 5 months ago

I have added an option for using slope collisions. This removes the vertices of the steps from the collision shape. Let me know if this is what you wanted.

sc0ttj commented 5 months ago

Works great, just what I was after :)

I'd consider this issue closed.

Thanks very much for the speedy reply.