-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cone -> Sphere and segment overlap #14
Comments
I'm not sure I understand the ask. Are you saying you want to overlap a cone against a set of spheres and segments, or do you want separate checks like |
I want to overlap a cone against a set of spheres and segments But both works |
this is for a topdown game, for visibility checks |
We would need to add
Cool! |
|
Why not? |
I suspect that chatgpt generated function may not catching all intersection cases, because it only seems to compare the angle of the cone against the vector going through the center point of the sphere. It would be nice to generate visual test for this, like we have for the other collision functions. That would give me some confidence that this code is actually working. |
I have tried but all codes he generate is broken. |
I would imagine somewhere on the web are high quality cone-sphere and cone-segment intersection tests. If you find any I'm happy to integrate them into this library. :) |
PRs also welcome! |
This might be good. It looks like it may be robust: https://github.com/mosra/magnum/blob/53c1549e69af552d28d5da8fc4dcdd0e9a1cad60/src/Magnum/Math/Intersection.h#L529-L556 |
Let me know how this works for you, if the routine seems robust I'm happy to include it in this module. |
Ok, i think it should work. As my game is using a BVH and i still don`t have a code to calculate AABB of frustrum i have not tested it visually (except some values) |
just out of curiosity what are you using for a renderer? |
Nothing, it is a mmorpg backend. But for the frontend i`m using unreal engine 5 |
that's a really interesting architecture, have yet to encounter that. Are you keeping a devlog anywhere? |
No, i have just started. But i will do it soon. This is my mmorpg on unity using same architecture but ... unity is dead |
Is there any way to implement cone -> sphere and segment overlap system?
The text was updated successfully, but these errors were encountered: