Gama C Library
Gama C API Documentation
gm_collision Struct Reference

Structure to store detailed information about a collision between two bodies. More...

#include <collision.h>

Data Fields

gmBodybodies [2]
gmPos normals
double penetration
double since
gmSystemsys

Detailed Description

Structure to store detailed information about a collision between two bodies.

Field Documentation

◆ bodies

gmBody* gm_collision::bodies[2]

Pointers to the two bodies involved in the collision.

◆ normals

gmPos gm_collision::normals

The normal vector of the collision, pointing from bodies[0] to bodies[1].

◆ penetration

double gm_collision::penetration

The penetration depth of the collision (how much bodies overlap).

◆ since

double gm_collision::since

The total time the bodies have been in collision (for continuous collision detection).

◆ sys

gmSystem* gm_collision::sys

Pointer to the physics system managing this collision (can be NULL).


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