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

ConvexHullGeometry.hx - _volume (issue) #62

Closed
Snky opened this issue Apr 24, 2023 · 1 comment
Closed

ConvexHullGeometry.hx - _volume (issue) #62

Snky opened this issue Apr 24, 2023 · 1 comment

Comments

@Snky
Copy link

Snky commented Apr 24, 2023

I believe I am correctly generating collision meshes through ConvexHullGeometry.hx - but sometimes the _volume is zero at line 67:

_volume = sizex * sizey * sizez;

Any idea what's going on here? The object is dynamic but it's not moving, the debug display, all the lines are grey (not blue/red/green/yellow). So for now I've changed the above to:

if ((sizex * sizey * sizez) != 0)
_volume = sizex * sizey * sizez;

@saharan
Copy link
Owner

saharan commented Jun 1, 2024

Input of ConvexHullGeometry must not be degenerated (i.e. there must not be a plane that contains all the vertices on it), but setting a minimum volume to avoid unintended behavior might be a good idea.

@saharan saharan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2024
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