Ejemplo n.º 1
0
    public Core.Shape getShapeWithObjPosition()
    {
        var points = new List <Vector2>(m_shape.vectorPoints);

        for (int i = 0; i < points.Count; i++)
        {
            var point = points [i];
            point = (Vector2)GizmoUtils.RotatePointAroundPivot(point, Vector3.zero, gameObject.transform.localRotation.eulerAngles);
            point = point + (Vector2)gameObject.transform.localPosition;
//			point = (Vector2)GizmoUtils.RotatePointAroundPivot (point, );
            points [i] = point;
        }
        var shape = new Core.Shape(points);

        return(shape);
    }