I take notes for myself as I go on with game development. They're meant for me but if they're also useful to someone else, that's great!
I have taken lots of notes and only now putting them here online, a little at a time. I write them as blog posts.
To make a character move smoothly up and down a slope in a platformer, start by figuring out the angle, θ of the slope, which is equal to the angle between the normal to the slope and a vector pointing up. Knowing this, obtain the normal to the slope. In Unity, this can be done by... Read full post →