Basic physics (gravity and collision with edges)