You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Maybe I don't understand, how you define plane, or dot product of vector3.
Can you help me with this?
The text was updated successfully, but these errors were encountered:
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)
Maybe I don't understand, how you define plane, or dot product of vector3.
Can you help me with this?
The text was updated successfully, but these errors were encountered: