coeng
annotate src/comp_phys.cc @ 4:49a2e70ac455
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 10 Feb 2015 17:21:30 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@3 | 1 #include "comp_phys.h" |
nuclear@3 | 2 |
nuclear@3 | 3 static CompRigid reg_co_rigid; |
nuclear@3 | 4 |
nuclear@3 | 5 static Component *cons_rigid() { return new CompRigid; } |
nuclear@3 | 6 |
nuclear@3 | 7 CompRigid::CompRigid() |
nuclear@3 | 8 { |
nuclear@3 | 9 mass = 1.0; |
nuclear@3 | 10 elast = 0.5; |
nuclear@3 | 11 friction = 0.0; |
nuclear@3 | 12 |
nuclear@3 | 13 name = "rigid"; |
nuclear@3 | 14 |
nuclear@3 | 15 register_component(name, cons_rigid); |
nuclear@3 | 16 } |
nuclear@3 | 17 |
nuclear@3 | 18 void CompRigid::update() |
nuclear@3 | 19 { |
nuclear@3 | 20 } |