Pico Headers
Loading...
Searching...
No Matches
Public Attributes | List of all members
ph_sat_t Struct Reference

A collision result Provides information about a collision. Normals always point from the target shape to the colliding shape. More...

#include <pico_hit.h>

Collaboration diagram for ph_sat_t:
Collaboration graph
[legend]

Public Attributes

pv2 normal
 Normal to colliding edge (in direction of MTV)
 
pfloat overlap
 Amount of overlap between two shapes along colliding axis (MTD)
 
pv2 mtv
 Minimum Translation Vector (MTV) defined by `mtv = normal * overlap.
 

Detailed Description

A collision result Provides information about a collision. Normals always point from the target shape to the colliding shape.

Member Data Documentation

◆ normal

pv2 ph_sat_t::normal

Normal to colliding edge (in direction of MTV)

◆ overlap

pfloat ph_sat_t::overlap

Amount of overlap between two shapes along colliding axis (MTD)

◆ mtv

pv2 ph_sat_t::mtv

Minimum Translation Vector (MTV) defined by `mtv = normal * overlap.


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