coeng
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/co_phys.cc Sat Feb 14 01:35:42 2015 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +#include "co_phys.h" 1.5 + 1.6 +static CoRigid reg_co_rigid; 1.7 + 1.8 +static Component *cons_rigid() { return new CoRigid; } 1.9 + 1.10 +CoRigid::CoRigid() 1.11 +{ 1.12 + mass = 1.0; 1.13 + elast = 0.5; 1.14 + friction = 0.0; 1.15 + 1.16 + name = "rigid"; 1.17 + 1.18 + register_component(name, cons_rigid); 1.19 +} 1.20 + 1.21 +void CoRigid::update() 1.22 +{ 1.23 +}