SA.FullBodyIK._DrawEffectorGizmo C# (CSharp) Method

_DrawEffectorGizmo() static private method

static private _DrawEffectorGizmo ( Effector effector ) : void
effector Effector
return void
		static void _DrawEffectorGizmo( Effector effector )
		{
			if( effector != null ) {
				bool isFinger = (effector.bone != null && effector.bone.boneType == BoneType.HandFinger);
				float effectorSize = (isFinger ? _FingerEffectorGizmoSize : _EffectorGizmoSize);
				Gizmos.color = Color.green;

				Vector3 position = Vector3.zero;
				if( effector.transform != null ) {
					position = effector.transform.position;
				} else {
					position = effector._worldPosition; // Memo: Don't re-write internal flags. (Use _worldPosition directly.)
				}

				Gizmos.DrawWireSphere( position, effectorSize );
				Gizmos.DrawWireSphere( position, effectorSize );
				Gizmos.DrawWireSphere( position, effectorSize );
				Gizmos.DrawWireSphere( position, effectorSize );
			}
		}
FullBodyIK