Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1. #define     MAX_PNTLIST_VERTICES    16
  2.  
  3. typedef struct {
  4.     float   x;
  5.     float   y;
  6. } vec_2d;
  7.  
  8. typedef struct {
  9.    
  10.     vec_2d  pos;                                // position
  11.     vec_2d  vel;                                // velocity
  12.     vec_2d  acc;                                // acceleration
  13.    
  14.     vec_2d  com;                                // center of mass
  15.    
  16.     vec_2d  pnt_list[MAX_PNTLIST_VERTICES;      // point list
  17.     int     pnt_list_num;                       // number of points
  18.    
  19.     int     rot;                                // rotation
  20.    
  21. } obj_polygon;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement