Rigid bodies in a flow simulation can be restrained translationally and rotationally.
About Rigid Body Displacement Restraint Defining a Rigid Body Displacement Restraint