using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VisiMath.Collisions
{
    /// <summary>
    /// Structure used to get intersection data
    /// </summary>
    public class CollisionInfo
    {
        /// <summary>
        /// Contact point in world coordinates for body 1
        /// </summary>
        public Vector3 ContactPoint1;

        /// <summary>
        /// Contact point in world coordinates for body 2
        /// </summary>
        public Vector3 ContactPoint2;


        /// <summary>
        /// Contact normal in world coordinates
        /// </summary>
        public Vector3 ContactNormal;

        /// <summary>
        /// Depth penetration at the place of contact
        /// </summary>
        public float Penetration;


        /// <summary>
        /// Index of item
        /// </summary>
        public int Index;

        /// <summary>
        /// User data
        /// </summary>
        public object UserData;
    };
}
