summaryrefslogtreecommitdiff
path: root/src/simulation/Solid.h
blob: 3a552cebdfc79fac4753427811d6e6abbccc6eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef SOLID_H_
#define SOLID_H_

#include <vector>
#include "StructProperty.h"

#define NSOLID 16

struct Solid
{
    int first, last;
    float vx, vy, vrot;
    float cdx, cdy;             // center of rotation
    float cx, cy;               // centroid position
    float ax, ay, arot, arad;   // accumulators
    int an;
    unsigned char bf;           // blocking flags
    float bpx[4], bpy[4];       // blocking position extents
    float bdx[4], bdy[4];       // blocking position orientation
    int bp[4];                  // blocking counterparticle ID
};

#endif