Пример #1
0
        public PartSeparator_Part(Point3D[] convexPoints, double mass, Point3D position, Quaternion orientation)
        {
            _isLooseProps = true;

            _convexPoints = convexPoints;
            _mass = mass;
            _position = position;
            _orientation = orientation;

            _size = new Vector3D(
                convexPoints.Max(o => Math.Abs(o.X)),
                convexPoints.Max(o => Math.Abs(o.Y)),
                convexPoints.Max(o => Math.Abs(o.Z)));
        }