coeng
annotate src/co_phys.cc @ 5:0e5da17d589c
decided to really work on this, so first a slight rename
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Feb 2015 01:35:42 +0200 |
parents | src/comp_phys.cc@66d1762eb203 |
children | 2f872a179914 |
rev | line source |
---|---|
nuclear@5 | 1 #include "co_phys.h" |
nuclear@3 | 2 |
nuclear@5 | 3 static CoRigid reg_co_rigid; |
nuclear@3 | 4 |
nuclear@5 | 5 static Component *cons_rigid() { return new CoRigid; } |
nuclear@3 | 6 |
nuclear@5 | 7 CoRigid::CoRigid() |
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@5 | 18 void CoRigid::update() |
nuclear@3 | 19 { |
nuclear@3 | 20 } |