LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
732 stars 76 forks source link

Ramp/Wedge Generator #361

Open SK83RJOSH opened 2 years ago

SK83RJOSH commented 2 years ago

It would be really awesome to have a way to generate ramps/wedges in the same way we can generate stairs. Perhaps with mode for ramp length + angle or a simple right angle triangle filling your selected bounds. This would make gyms a lot easier to construct. An example use case where I had to get by by rotating boxes (which was a bit of a headache as well): image

nukeandbeans commented 2 years ago

You can create ramps without rotating brushes, by going into edit mode, and moving an edge down to meet the bottom edge. RCSG should automatically merge the vertices there and keep the brush shape.

SK83RJOSH commented 2 years ago

You can create ramps without rotating brushes, by going into edit mode, and moving an edge down to meet the bottom edge. RCSG should automatically merge the vertices there and keep the brush shape.

Aye, this is workable but it means I need to do the math to make sure the angles are correct; I think the big thing here would be having some kind of generator that I can slap some parameters into and just get a best effort fit to my bounds. Though I guess I could very well just make a PR if I find the time and you'd be willing to accept it. 😄