up    |    index

physeeeecs

July 14, 2021

I've finally implemented physics into the degree2 engine. I can now move an object depending on its mass and the forces acted upon it via Newton's laws of motion. In the gif below, I continually apply a force on an object in a frictionless plane. I guess I'm supposed to apply other forces such as a gravitational force, friction force, etc.. but I'm too lazy for that shit right now. The blue line represents the force, and the green line (hidden) represents the mass's velocity. Something feels off about it, but whatever.

a red square being moved by an external force

Other forces such as spring forces are to be added soon. I'm also not quite sure how a camera would affect a physics simulation since it'd be a noninertial reference frame (i think), but I'll figure it out.