using System;

namespace Icarus.Logic.Physics
{
	/// <summary>
	/// Summary description for TriangleTR.
	/// </summary>
	public class TriangleTR : Triangle
	{
		public TriangleTR()
		{
			this.Description = "Tri-Ceiling-NegSlope";
		}


        /// <summary>
        /// Performs the necessary operations on a PO
        /// that has collided with this triangle
        /// </summary>
        /// <param name="po">Physics Object that collided with triangle</param>
        /// <returns>Action to be taken after collision occurs(ie: remove, doNothing)</returns>
        public override int intersectionAction(PhysicsObject po)
        {
            po.Velocity.i = 0.0f;
            po.Velocity.j = 0.0f;
            po.Velocity.k = 0.0f;

            return (int)PhysicsSettings.enumActions.DoNothing;
        }

	}
}
