BEPUphysics.CollisionTests.CollisionAlgorithms.MPRToolbox.GetOverlapPosition C# (CSharp) Метод

GetOverlapPosition() публичный статический Метод

Gets a world space point in the overlapped volume between two shapes.
public static GetOverlapPosition ( ConvexShape shapeA, ConvexShape shapeB, RigidTransform &transformA, RigidTransform &transformB, System.Vector3 &position ) : bool
shapeA BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape First shape in the pair.
shapeB BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape Second shape in the pair.
transformA BEPUutilities.RigidTransform Transformation to apply to the first shape.
transformB BEPUutilities.RigidTransform Transformation to apply to the second shape.
position System.Vector3 Position within the overlapped volume of the two shapes, if any.
Результат bool
        public static bool GetOverlapPosition(ConvexShape shapeA, ConvexShape shapeB, ref RigidTransform transformA, ref RigidTransform transformB, out Vector3 position)
        {
            RigidTransform localTransformB;
            MinkowskiToolbox.GetLocalTransform(ref transformA, ref transformB, out localTransformB);
            bool toReturn = GetLocalOverlapPosition(shapeA, shapeB, ref localTransformB, out position);
            RigidTransform.Transform(ref position, ref transformA, out position);
            return toReturn;

        }