﻿using UnityEngine;

namespace pdinklag.CPW.Common
{
    /// <summary>
    /// Represents a ring rope.
    /// </summary>
    public interface IRope
    {
        /// <summary>
        /// The ray along which the rope is hooked.
        /// </summary>
        /// <param name="ctx">the target context</param>
        IRay Ray(ITargetContext ctx);

        /// <summary>
        /// The rope's start position.
        /// </summary>
        Vector3 StartPosition { get; }

        /// <summary>
        /// The rope's end position.
        /// </summary>
        Vector3 EndPosition { get; }

        /// <summary>
        /// The rope's thickness.
        /// </summary>
        float Thickness {get;}
    }
}
