private void DrawJoint(BioJoint joint, bool final) { if (!final) { DoF += joint.GetDoF(); } //DrawDottedLine(joint.Segment.Transform.position, joint.GetAnchorInWorldSpace(), 5f, Color.magenta); DrawCube(joint.GetAnchorInWorldSpace(), joint.Segment.Transform.rotation * Quaternion.Euler(joint.GetOrientation()), 0.025f, Color.magenta); DrawMotion(joint.X, Color.red, final); DrawMotion(joint.Y, Color.green, final); DrawMotion(joint.Z, Color.blue, final); }
public Vector3 GetAnchoredPosition() { return(Joint == null ? Transform.position : Joint.GetAnchorInWorldSpace()); }