Posts
Filtered by “cpp”: 16 Reset filter
Circles and boxes with impulses: collision normal, penetration depth, restitution, friction and why a stack of crates shakes. With a demo to play with.
One ray per pixel, three balls on a checkerboard, shadows and reflections you can switch on and off. With a ray counter so you can see what…
Which 3D object is under the mouse? Pixel to ray, ray against sphere and box, the nearest hit wins. With a demo to try.
Logic runs in fixed steps, drawing happens in between. Interpolation turns choppy motion into smooth motion.
A square that moves four pixels per frame runs at a different speed on every machine. With delta time it doesn't.
The simplest game loop depends on the speed of the machine. With a fixed timestep it doesn't.