group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
physics::DepenContact Struct Reference

Single deepest contact from a capsule against a primitive or the world. More...

#include <SweptCollision.hpp>

Public Attributes

bool valid {false}
float depth {0.0f}
glm::vec3 normal {0.0f, 1.0f, 0.0f}
SurfaceType surfaceType {SurfaceType::Concrete}

Detailed Description

Single deepest contact from a capsule against a primitive or the world.

For authored triangle meshes, depth is the capsule surface penetration depth from closest capsule-axis point to closest bounded triangle feature. For legacy plane / brush / primitive paths it may still be a projected primitive MTV. normal always points from geometry toward the capsule side selected by the query.

valid = false when no penetration; depth > 0 otherwise.

Member Data Documentation

◆ depth

float physics::DepenContact::depth {0.0f}

◆ normal

glm::vec3 physics::DepenContact::normal {0.0f, 1.0f, 0.0f}

◆ surfaceType

SurfaceType physics::DepenContact::surfaceType {SurfaceType::Concrete}

◆ valid

bool physics::DepenContact::valid {false}

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