Gama C Library
Gama C API Documentation
gm_system Struct Reference

Structure representing a physics system containing bodies and collision information. More...

#include <system.h>

Data Fields

int is_active
gmBodies bodies
struct gm_collision ** collisions
gmPos velocity
gmPos acceleration
double damping

Detailed Description

Structure representing a physics system containing bodies and collision information.

Field Documentation

◆ acceleration

gmPos gm_system::acceleration

Global acceleration applied to all bodies (e.g., gravity).

◆ bodies

gmBodies gm_system::bodies

List of pointers to bodies currently managed by this system.

◆ collisions

struct gm_collision** gm_system::collisions

Array of active collision information objects.

◆ damping

double gm_system::damping

Global damping factor applied to all bodies (reduces velocity over time).

◆ is_active

int gm_system::is_active

Whether the system is active and should be updated.

◆ velocity

gmPos gm_system::velocity

Global velocity applied to all bodies in the system (e.g., wind).


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