Posts in Articles

Derivation of the Orthographic Projection Matrix

The orthographic projection matrix takes a rectangular prism with corners at (l, t, -n) and (r, b, -f) (with l being left, t being top, n being near, r being right, b being bottom, and f being far) and maps it to a cube with the coordinates of the same corners being (-1, 1, 1) […]

| Tagged , | Leave a comment

Hit Detection Experiments

I decided I wanted to write an environment hit detection system the other day. My intention was to make a collidable image, by which I mean particles/circles could collide with arbitrary shapes based on the pixels of the image. Decided I could check if a line formed by the last position of the particle and […]

| Tagged , , | Leave a comment