coeng

diff src/comp_phys.h @ 0:14e743b53289

component system test
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 04 Feb 2015 17:23:35 +0200
parents
children 66d1762eb203
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/comp_phys.h	Wed Feb 04 17:23:35 2015 +0200
     1.3 @@ -0,0 +1,20 @@
     1.4 +#ifndef COMP_PHYS_H_
     1.5 +#define COMP_PHYS_H_
     1.6 +
     1.7 +#include <vmath/vmath.h>
     1.8 +#include "comp.h"
     1.9 +
    1.10 +class CompRigid : public CompPRS {
    1.11 +public:
    1.12 +	float mass, elast, friction;
    1.13 +	Vector3 pos, vel;
    1.14 +
    1.15 +	CompRigid()
    1.16 +	{
    1.17 +		mass = 1.0;
    1.18 +		elast = 0.5;
    1.19 +		friction = 0.0;
    1.20 +	}
    1.21 +};
    1.22 +
    1.23 +#endif	// COMP_PHYS_H_