Open platlas opened 2 years ago
Mover element is not showing up. It seems like acceleration of Mover is 'polluted' by NaN coordinates when initial mouse event is not triggered.
https://github.com/nannou-org/nannou/blob/874441235377b0675f7ee862c50a714ba5a65d2f/nature_of_code/chp_01_vectors/1_10_motion101_acceleration.rs#L41
If I change normalize() to normalize_or_zero() then Mover element is drawn at initial position and waits for mouse event.
normalize()
normalize_or_zero()
Mover element is not showing up. It seems like acceleration of Mover is 'polluted' by NaN coordinates when initial mouse event is not triggered.
https://github.com/nannou-org/nannou/blob/874441235377b0675f7ee862c50a714ba5a65d2f/nature_of_code/chp_01_vectors/1_10_motion101_acceleration.rs#L41
If I change
normalize()
tonormalize_or_zero()
then Mover element is drawn at initial position and waits for mouse event.