Unity Script Reference:
RigidbodyConstraints.FreezePosition
Description

Freeze motion along all axes.