alecjacobson / computer-graphics-mass-spring-systems

Computer Graphics Assignment – Mass Spring Systems
49 stars 20 forks source link

toggle animation #21

Open microshadow opened 4 years ago

microshadow commented 4 years ago

after running ./masssprings ..... I press 'A' to toggle the animation, but the spring just disappears, and nothing left on the screen but background color. Anyone meet the same issue?

abhimadan commented 4 years ago

This likely means that all your positions are infinity or NaN. Try using a debugger and run the simulation for one timestep (use spacebar to do this) and look at Unext.