nuclear@3: #include "comp_phys.h" nuclear@3: nuclear@3: static CompRigid reg_co_rigid; nuclear@3: nuclear@3: static Component *cons_rigid() { return new CompRigid; } nuclear@3: nuclear@3: CompRigid::CompRigid() nuclear@3: { nuclear@3: mass = 1.0; nuclear@3: elast = 0.5; nuclear@3: friction = 0.0; nuclear@3: nuclear@3: name = "rigid"; nuclear@3: nuclear@3: register_component(name, cons_rigid); nuclear@3: } nuclear@3: nuclear@3: void CompRigid::update() nuclear@3: { nuclear@3: }