coeng
annotate src/comp_phys.h @ 2:4a1c9597f4d3
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 05 Feb 2015 11:04:07 +0200 |
parents | |
children | 66d1762eb203 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef COMP_PHYS_H_ |
nuclear@0 | 2 #define COMP_PHYS_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include <vmath/vmath.h> |
nuclear@0 | 5 #include "comp.h" |
nuclear@0 | 6 |
nuclear@0 | 7 class CompRigid : public CompPRS { |
nuclear@0 | 8 public: |
nuclear@0 | 9 float mass, elast, friction; |
nuclear@0 | 10 Vector3 pos, vel; |
nuclear@0 | 11 |
nuclear@0 | 12 CompRigid() |
nuclear@0 | 13 { |
nuclear@0 | 14 mass = 1.0; |
nuclear@0 | 15 elast = 0.5; |
nuclear@0 | 16 friction = 0.0; |
nuclear@0 | 17 } |
nuclear@0 | 18 }; |
nuclear@0 | 19 |
nuclear@0 | 20 #endif // COMP_PHYS_H_ |