Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If Room Count is Low, Generation Fails #9

Open
Snow-Okami opened this issue Jul 9, 2023 · 1 comment
Open

If Room Count is Low, Generation Fails #9

Snow-Okami opened this issue Jul 9, 2023 · 1 comment

Comments

@Snow-Okami
Copy link

It also seems if I try to change any of the Size, or Room Max Size the generation also fails.

It fails here:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.Collections.Generic.List 1[T].get_Item (System.Int32 index) (at <0de99929796b4095b47389e59e446fbd>:0) Generator3D.CreateHallways () (at Assets/__PROJECT__/Code/ProcGen3D/Code/3D/Generator3D.cs:181)

It seems the delaunay algorithm is failing to find any edges during the triangulate process as delaunay.Edges is 0.

@coucoul38
Copy link

You need at least 3 rooms to triangulate. Cause triangles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants