Gama C Library
Gama C API Documentation
Loading...
Searching...
No Matches
gmCollision Struct Reference

Structure representing a collision between two bodies. More...

#include <system.h>

Data Fields

struct gm_systemsys
gmBodybodies [2]
double penetration
double since
gmPos normals

Detailed Description

Structure representing a collision between two bodies.

Field Documentation

◆ bodies

gmBody* gmCollision::bodies[2]

Array containing the two colliding bodies

◆ normals

gmPos gmCollision::normals

Normal vector of the collision

◆ penetration

double gmCollision::penetration

Depth of penetration between the bodies

◆ since

double gmCollision::since

Time since the collision began

◆ sys

struct gm_system* gmCollision::sys

Pointer to the system where the collision occurred


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