コード例 #1
0
ファイル: Hole.cs プロジェクト: EusthEnoptEron/Sketchball
 protected override void Init()
 {
     int r = 16;
     BoundingCircle bC = new BoundingCircle(r, new Vector( (BaseWidth / 2) - r, (BaseHeight / 2) - r ));
     this.BoundingContainer.AddBoundingBox(bC);
     bC.AssignToContainer(this.BoundingContainer);
     this.pureIntersection = true;
 }
コード例 #2
0
        protected override void Init()
        {
            this.pureIntersection = true;

            BoundingCircle bC = new BoundingCircle(15, new Vector(0, 0));
            this.BoundingContainer.AddBoundingBox(bC);
            bC.AssignToContainer(this.BoundingContainer);
            this.pureIntersection = true;
        }