vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::SupportShape Struct Reference

A convex shape reduced to the one question GJK asks: its furthest point along a direction. More...

#include <support.h>

Public Types

enum class  Kind : uint8_t { Box , Capsule , Points }

Detailed Description

A convex shape reduced to the one question GJK asks: its furthest point along a direction.

The primitives keep their hand-written pair routines, which return up to four contact points (a box resting on a box needs them); GJK answers overlap alone. See docs/guides/engine.md, section 4.

Member Enumeration Documentation

◆ Kind

enum class Vkm::Engine::SupportShape::Kind : uint8_t
strong
Enumerator
Box 

Reads centre + axes + halfExtents.

Capsule 

Reads a + b + radius; a == b is a sphere.

Points 

Reads points + count, already in world space.


The documentation for this struct was generated from the following file: