Groove constraint for 2D physics. Groove constraint for 2D physics. This is useful for making a body "slide" through a segment placed in another. Set the final offset of the groove on body A. Return the length of the groove. Set the initial offset of the groove on body A. Set the length of the groove.