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

A contact manifold between exactly two entities. More...

#include <ContactManifold.hpp>

Public Attributes

entt::entity a {entt::null}
entt::entity b {entt::null}
glm::vec3 normal {0.0f, 1.0f, 0.0f}
 Points from A → B (out of A's surface).
int pointCount = 0
std::array< ContactPoint, k_maxContactPointspoints {}
SurfaceType surfaceA = SurfaceType::Concrete
SurfaceType surfaceB = SurfaceType::Concrete
bool aIsStatic = false
 Static / kinematic flag.
bool bIsStatic = false

Detailed Description

A contact manifold between exactly two entities.

Contains 1–4 contact points sharing a single normal.

Member Data Documentation

◆ a

entt::entity physics::ContactManifold::a {entt::null}

◆ aIsStatic

bool physics::ContactManifold::aIsStatic = false

Static / kinematic flag.

When true, body A is treated as infinite mass during impulse application — typical for the world.

◆ b

entt::entity physics::ContactManifold::b {entt::null}

◆ bIsStatic

bool physics::ContactManifold::bIsStatic = false

◆ normal

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

Points from A → B (out of A's surface).

◆ pointCount

int physics::ContactManifold::pointCount = 0

◆ points

std::array<ContactPoint, k_maxContactPoints> physics::ContactManifold::points {}

◆ surfaceA

SurfaceType physics::ContactManifold::surfaceA = SurfaceType::Concrete

◆ surfaceB

SurfaceType physics::ContactManifold::surfaceB = SurfaceType::Concrete

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