Quick hack to support 2D kinematics.