INDAPlus20 / isaklar-ahanifi-maltebl-lervik-project

Jo, men det borde väl inte vara så svårt?
0 stars 0 forks source link

Refactor collision w/ helper function #37

Closed M-Blomqvist closed 3 years ago

M-Blomqvist commented 3 years ago

A IMO more readable code with helper function, haven't changed the content except reducing the amount of variables only needed for one calculation & changing mass to inversemass (& division -> multiplication). Weird things such as dividing by inverse mass is still there, and problems such as undescript variable names and no testing is still probably good to address on branch #36.

M-Blomqvist commented 3 years ago

Also don't know if "friction1/2 & impulse1" are good variable names, probably not