#define CONST_G 0.0000001 // gravitational constant #define CONST_k 0.001 // 1/(4*pi*permittivity of free space) #define CONST_f 0.1 //Coefficient of kinetic friction #define SPRING_K 0.005 //Standard spring constant #define V_INIT 0.001 #define F_INIT 0.01 #define STATIC_v 0.000001 #define STATIC_f 0.001 class GWorld { public: GWorld(void); ~GWorld(void); void ComputeForce(); void Step(); void Render(); void ReScale(); void RenderHelp(); void Init(); void Add( GParticle* p ); void RemoveAllBut( GParticle* p ); void Remove( GParticle* p ); GParticle* ParticleAt( double x, double y ); GParticle* parts; GParticle* root; double mass; double scale; bool greased; bool autoscale; bool nofric; bool heavyg; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 4763 | Sam Stafford |
Rename //guest/sam_stafford/jamgraph/... to //guest/sam_stafford/jamgraph/main/... to support mainline model in sample depot. |
||
//guest/sam_stafford/jamgraph/gworld.h | |||||
#3 | 3051 | Sam Stafford |
A few bug fixes and a few new options. Run "jamgraph -h" for info. |
||
#2 | 3033 | Sam Stafford |
Jamgraph functional. Usage: jam -ndd | jamgraph Still twiddling with the interface, so it's undocumented. |
||
#1 | 3023 | Sam Stafford |
A toy. Soon to be (hopefully) a toy powered by Jam. |