コード例 #1
0
ファイル: PathShape.cs プロジェクト: bgarrels/projectanarchy
 public override bool GetLocalBoundingBox(ref BoundingBox bbox)
 {
     PathNodeShape[] nodes = this.PathNodes;
       if (nodes == null || nodes.Length == 0)
     return false;
       bbox = new BoundingBox();
       foreach (PathNodeShape node in nodes)
     bbox.AddPoint(node.LocalSpacePosition);
       bbox.AddBorder(5.0f * EditorManager.Settings.GlobalUnitScaling);
       return true;
 }