using UnityEngine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BzKovSoft.RagdollHelper.Editor
{
///
/// Abstract class. Represents ragdoll part. For example: legUpper, head, pelvis or something else
///
abstract class RagdollPartBase
{
public readonly Transform transform;
public Rigidbody rigidbody;
public CharacterJoint joint;
protected RagdollPartBase(Transform transform)
{
this.transform = transform;
}
}
///
/// Ragoll part for Box collider
///
sealed class RagdollPartBox : RagdollPartBase
{
public BoxCollider collider;
public RagdollPartBox(Transform transform) : base(transform) { }
}
///
/// Ragoll part for Capsule collider
///
sealed class RagdollPartCapsule : RagdollPartBase
{
public CapsuleCollider collider;
public RagdollPartCapsule(Transform transform) : base(transform) { }
}
///
/// Ragoll part for Sphere collider
///
sealed class RagdollPartSphere : RagdollPartBase
{
public SphereCollider collider;
public RagdollPartSphere(Transform transform) : base(transform) { }
}
}