The function which manages the day/night cycle, as well as the weather cycle. Every frame, values such as the sky colors, sun position, and fog color are sampled from gradient resources which represent a range from 0.0-1.0, interpolated from the time of day. Transitions between different weather states are handled based on a timer which runs for a random amount of time within a range.
Jumping behavior upon input detection. Velocities are affected a certain amount depending on the state that the player is in when the input is recieved.
Ledge detection. A number of raycasts around the player are checked to ensure that the player is against a ledge they can climb up, and they are moved upwards until they've reached the top of the ledge, at which point they're given a small impulse forwards.