Antkeeper  0.0.1
Public Attributes | List of all members
physics::collision_manifold< N > Struct Template Reference

Collection of contact points between two colliding bodies. More...

#include <collision-manifold.hpp>

Public Attributes

rigid_bodybody_a {}
 First colliding body. More...
 
rigid_bodybody_b {}
 Second colliding body. More...
 
std::array< collision_contact, N > contacts
 Set of contact points between body a and body b. More...
 
std::uint8_t contact_count {}
 Number of contact points between body a and body b. More...
 

Detailed Description

template<std::uint8_t N>
struct physics::collision_manifold< N >

Collection of contact points between two colliding bodies.

Template Parameters
NMaximum number of contact points.

Definition at line 36 of file collision-manifold.hpp.

Member Data Documentation

◆ body_a

template<std::uint8_t N>
rigid_body* physics::collision_manifold< N >::body_a {}

First colliding body.

Definition at line 39 of file collision-manifold.hpp.

◆ body_b

template<std::uint8_t N>
rigid_body* physics::collision_manifold< N >::body_b {}

Second colliding body.

Definition at line 42 of file collision-manifold.hpp.

◆ contact_count

template<std::uint8_t N>
std::uint8_t physics::collision_manifold< N >::contact_count {}

Number of contact points between body a and body b.

Definition at line 48 of file collision-manifold.hpp.

◆ contacts

template<std::uint8_t N>
std::array<collision_contact, N> physics::collision_manifold< N >::contacts

Set of contact points between body a and body b.

Definition at line 45 of file collision-manifold.hpp.


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