I know how to make an axis-aligned prismatic joint using the ConfigurableJoint. For a prismatic joint along the x axis, I can do the following:
ConfigurableJoint joint;
joint.angularXMotion = ConfigurableJointMotion.Locked;
joint.angularYMotion = ConfigurableJointMotion.Locked;
joint.angularZMotion = ConfigurableJointMotion.Locked;
joint.angularYMotion = ConfigurableJointMotion.Locked;
joint.angularZMotion = ConfigurableJointMotion.Locked;
joint.axis = Vector3.right;
Other axis-aligned joints are similarly easy. However, what if I want to make a prismatic joint along the axis, say, (1/sqrt(3), q/sqrt(3), 1/sqrt(3)). Is there a way to make this happen?