coeng

view src/comp_phys.h @ 0:14e743b53289

component system test
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 04 Feb 2015 17:23:35 +0200
parents
children 66d1762eb203
line source
1 #ifndef COMP_PHYS_H_
2 #define COMP_PHYS_H_
4 #include <vmath/vmath.h>
5 #include "comp.h"
7 class CompRigid : public CompPRS {
8 public:
9 float mass, elast, friction;
10 Vector3 pos, vel;
12 CompRigid()
13 {
14 mass = 1.0;
15 elast = 0.5;
16 friction = 0.0;
17 }
18 };
20 #endif // COMP_PHYS_H_