Only extremely massive objects like stars and planets exert a gravitational force, so gravitational potential energy only depends on how far an object is away from a planet or star (suspected).
Items that test for misconception RGM036 in this project (ASPECt)
and key idea (Gravitational potential energy is a…)