help needed for humanoid

Find the balance point in two orthogonal directions, the intersection of these is the centre of gravity.