fix: added w to the Pedestrian default constructor
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ struct Pedestrian {
|
|||||||
Vector2d destination;
|
Vector2d destination;
|
||||||
Vector2d f_i;
|
Vector2d f_i;
|
||||||
|
|
||||||
Pedestrian() : color(WHITE), curr_vel(0.0, 0.0), curr_pos(0.0, 0.0), e(0.0, 0.0), v_max(0.0), desired_v0(0.0), destination(0.0, 0.0), f_i(0.0, 0.0) {}
|
Pedestrian() : color(WHITE), curr_vel(0.0, 0.0), w(0.0, 0.0), curr_pos(0.0, 0.0), e(0.0, 0.0), v_max(0.0), desired_v0(0.0), destination(0.0, 0.0), f_i(0.0, 0.0) {}
|
||||||
|
|
||||||
Pedestrian(Color clr, Vector2d c_v, Vector2d c_p, Vector2d e, double v_max, double desired_v0, Vector2d d, Vector2d f)
|
Pedestrian(Color clr, Vector2d c_v, Vector2d c_p, Vector2d e, double v_max, double desired_v0, Vector2d d, Vector2d f)
|
||||||
: color(clr), curr_vel(c_v), w(c_v), // initialize w = v at t=0
|
: color(clr), curr_vel(c_v), w(c_v), // initialize w = v at t=0
|
||||||
|
|||||||
Reference in New Issue
Block a user