coeng

diff src/comp_phys.cc @ 3:66d1762eb203

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 05 Feb 2015 23:20:20 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/comp_phys.cc	Thu Feb 05 23:20:20 2015 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +#include "comp_phys.h"
     1.5 +
     1.6 +static CompRigid reg_co_rigid;
     1.7 +
     1.8 +static Component *cons_rigid() { return new CompRigid; }
     1.9 +
    1.10 +CompRigid::CompRigid()
    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 CompRigid::update()
    1.22 +{
    1.23 +}