Do head direction cells represent 2D or 3D direction?

2D.
Grid cells on steeply sloping terrain - evidence for planar rather than volumetric encoding

Neural encoding of large-scale three-dimensional space—properties and constraints

Neuroscience: How Is Three-Dimensional Space Encoded in the Brain?

3 Likes