Convexity
Last updated
What is Convexity?
Convexity is a significant concept used in game development, particularly in the narrow phase of collision detection. A shape is considered convex if, for every pair of points inside the shape, the complete line segment between them is also inside the shape. Essentially, a convex shape has no angles pointing inwards. Convex shapes can be of great benefit in game development because they're simpler to handle computationally. For instance, in collision detection algorithms such as separating axis theorem (SAT) and Gilbert–Johnson–Keerthi (GJK), the input shapes are often convex. Non-convex shapes or concave shapes usually require more complex methods for collision detection, often involving partitioning the shape into smaller convex parts.
Free resources to learn Convexity
More in stage 10: Programming Languages
Convexity: common questions
Can I learn Convexity in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Convexity in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Convexity tutorial for beginners?
It is lesson 49 of 144 in the free Game Developer roadmap, in stage 10, Programming Languages. If you are new to Game Developer, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.