public bool OverlappingTransConservative(ref AABB box, ref IndexedMatrix trans1_to_0) { AABB tbox = box; tbox.ApplyTransform(ref trans1_to_0); return(HasCollision(ref tbox)); }
//! 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; }
//! 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)); }