package meyermike.collision
{
    import flash.geom.Point;

    /**
     * Struct used to represent the imperant information about a collision
     * once one has been detected
     * @author Mike Meyer
     */
    public class CollisionInfo
    {
        /**
         * where the collision occurred
         */
        public var location:Point;

        /**
         * Normal (pointing toward the first object
         */
        public var normal:Point;

        /**
         * percentage of the movement that it got through before
         * collision [0,1]
         */
        public var t:Number;

        public function CollisionInfo()
        {
            location = new Point();
            normal = new Point();
            t = 0;
        }
    }

}