void SetDriveInternal(Physics.PhysicsJoint joint, Vector3 targetVelocity)
 {
     if (joint.State.Angular != null)
     {
         joint.SetAngularDriveVelocity(targetVelocity);
     }
     if (joint.State.Linear != null)
     {
         joint.SetAngularDriveVelocity(targetVelocity);
     }
 }
 void SetDriveInternal(Physics.PhysicsJoint joint, Quaternion orientation, Vector3 position)
 {
     if (joint.State.Angular != null)
     {
         joint.SetAngularDriveOrientation(orientation);
     }
     if (joint.State.Linear != null)
     {
         joint.SetLinearDrivePosition(position);
     }
 }