Antkeeper  0.0.1
Public Attributes | List of all members
physics::collision_contact Struct Reference

Point of contact between two colliding bodies. More...

#include <collision-contact.hpp>

Public Attributes

math::fvec3 point {}
 World-space contact point. More...
 
math::fvec3 normal {}
 Contact normal, pointing from body a to body b. More...
 
float depth {}
 Contact penetration depth. More...
 

Detailed Description

Point of contact between two colliding bodies.

Definition at line 30 of file collision-contact.hpp.

Member Data Documentation

◆ depth

float physics::collision_contact::depth {}

Contact penetration depth.

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

◆ normal

math::fvec3 physics::collision_contact::normal {}

Contact normal, pointing from body a to body b.

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

◆ point

math::fvec3 physics::collision_contact::point {}

World-space contact point.

Definition at line 33 of file collision-contact.hpp.


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