1027 |
public: |
public: |
1028 |
Magnet_FF() : m_active(false), strength(30) {} |
Magnet_FF() : m_active(false), strength(30) {} |
1029 |
|
|
1030 |
void set_pos(GridPos p) { center = to_vec(p) + V2(0.5,0.5); } |
void set_pos(GridPos p) { center = p.center(); } |
1031 |
|
|
1032 |
V2 get_force(Actor */*a*/, V2 x, V2 /*v*/, double /*time*/) |
V2 get_force(Actor */*a*/, V2 x, V2 /*v*/, double /*time*/) |
1033 |
{ |
{ |
1107 |
public: |
public: |
1108 |
WormHole_FF() : strength(50), range(1000) {} |
WormHole_FF() : strength(50), range(1000) {} |
1109 |
|
|
1110 |
void set_pos(GridPos p) { center = to_vec(p) + V2(0.5,0.5); } |
void set_pos(GridPos p) { center = p.center(); } |
1111 |
|
|
1112 |
V2 get_force(Actor */*a*/, V2 x, V2 /*v*/, double /*time*/) |
V2 get_force(Actor */*a*/, V2 x, V2 /*v*/, double /*time*/) |
1113 |
{ |
{ |