comparison ships/ship.d @ 32:741313c302ed default tip

updated demo
author zzzzrrr <mason.green@gmail.com>
date Mon, 06 Apr 2009 23:39:59 -0400
parents 1cd0d4c7258e
children
comparison
equal deleted inserted replaced
31:55eb66672c03 32:741313c302ed
110 } 110 }
111 111
112 void setPlanetGravity() { 112 void setPlanetGravity() {
113 float minRadius = 0.1; 113 float minRadius = 0.1;
114 float maxRadius = 10; 114 float maxRadius = 10;
115 float strength = 0.75; 115 float strength = 2.5;
116 bzVec2 center = bzVec2(0,0); 116 bzVec2 center = bzVec2(0,0);
117 auto attractor = new bzAttractor(rBody, center, strength, minRadius, maxRadius); 117 auto attractor = new bzAttractor(rBody, center, strength, minRadius, maxRadius);
118 world.addForce(attractor); 118 world.addForce(attractor);
119 } 119 }
120 120