Exemplo n.º 1
0
        public bool OverlappingTransConservative(ref AABB box, ref IndexedMatrix trans1_to_0)
        {
            AABB tbox = box;

            tbox.ApplyTransform(ref trans1_to_0);
            return(HasCollision(ref tbox));
        }
Exemplo n.º 2
0
        //! If the Bounding box is not updated, then this class attemps to calculate it.

        /*!
         * \post Calls updateBound() for update the box set.
         */
        public override void GetAabb(ref IndexedMatrix t, out IndexedVector3 aabbMin, out IndexedVector3 aabbMax)
        {
            AABB transformedbox = m_localAABB;

            transformedbox.ApplyTransform(ref t);
            aabbMin = transformedbox.m_min;
            aabbMax = transformedbox.m_max;
        }
Exemplo n.º 3
0
        //! returns the indices of the primitives in the m_primitive_manager
        public bool BoxQueryTrans(ref AABB box,
                                  ref IndexedMatrix transform, ObjectArray <int> collided_results)
        {
            AABB transbox = box;

            transbox.ApplyTransform(ref transform);
            return(BoxQuery(ref transbox, collided_results));
        }