public void DrawGizmos()
{
Vector3 cameraForward = Camera.current.transform.forward;
if( _effectors != null ) {
int effectorLength = _effectors.Length;
for( int i = 0; i != effectorLength; ++i ) {
_DrawEffectorGizmo( _effectors[i] );
}
}
if( _bones != null ) {
int boneLength = _bones.Length;
for( int i = 0; i != boneLength; ++i ) {
_DrawBoneGizmo( _bones[i], ref cameraForward );
}
}
#if SAFULLBODYIK_DEBUG
if( internalValues != null && internalValues.debugData != null ) {
var debugPoints = internalValues.debugData.debugPoints;
int debugPointCount = debugPoints.Count;
for( int i = 0; i != debugPointCount; ++i ) {
Gizmos.color = debugPoints[i].color;
for( int n = 0; n != 8; ++n ) {
Gizmos.DrawWireSphere( debugPoints[i].pos, debugPoints[i].size );
}
}
}
#endif
}