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

Plane IntersectSphere #33

Open
JazzyJohn opened this issue Feb 25, 2015 · 0 comments
Open

Plane IntersectSphere #33

JazzyJohn opened this issue Feb 25, 2015 · 0 comments

Comments

@JazzyJohn
Copy link

It's seems to me that you have error when adding m_distance when determing if plane IntersectSphere.

With simple example plane1(Vector3f(0.0f, 1.0f, 0.0f), 3.0f); and sphere2(Vector3f(0.0f, 3.0f, 0.0f), 1.0f); you will get not intersecting and distance 5, but plane in the middle of sphere.(like in Image)
shereintersecting

Maybe I don't understand, how you define plane, or dot product of vector3.

Can you help me with this?

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

1 participant