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

A single recorded contact event. More...

#include <DebugCollisionDraw.hpp>

Public Attributes

glm::vec3 point {0.0f}
 World-space contact point.
glm::vec3 normal {0.0f}
 Unit surface normal pointing into free space.
float depth = 0.0f
 Depenetration depth (0 for sweep hits).
ContactSource source {}
 Origin classification (for filtering/colouring).
uint32_t primitiveIndex = 0
 Source-primitive index (e.g. triangle id, box id).

Detailed Description

A single recorded contact event.

normal always points from solid into free space (the direction the entity is pushed). depth is the depenetration depth in world units (0 for swept hits, which have no penetration depth).

Member Data Documentation

◆ depth

float physics::debug::Contact::depth = 0.0f

Depenetration depth (0 for sweep hits).

◆ normal

glm::vec3 physics::debug::Contact::normal {0.0f}

Unit surface normal pointing into free space.

◆ point

glm::vec3 physics::debug::Contact::point {0.0f}

World-space contact point.

◆ primitiveIndex

uint32_t physics::debug::Contact::primitiveIndex = 0

Source-primitive index (e.g. triangle id, box id).

◆ source

ContactSource physics::debug::Contact::source {}

Origin classification (for filtering/colouring).


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