Currently browsing tag

collision

29. OpenGL Bounding Sphere Collision

OpenGL Bounding Sphere Tutorial PreviewAt present, none of our OpenGL shapes can interact with each other, that is because OpenGL is purely graphics, it doesn't handle physics, so using the Euclidean distance algorithm, we can implement some basic bounding sphere collision ourselves.