[core] Return mathutils.Vector and not a list if gravity is not well defined