Exemplo n.º 1
0
 public StaticObject(IColliderGroup Collider, GameObject gameObject)
     : base(gameObject)//Scale will be added later
 {
     this.Collider                 = Collider;
     this.BoundingShape            = Collider.GenerateBounds(new Vector2(1, 1));
     this.BoundingShape.Container  = this;
     this.ColliderRelativePosition = BoundingShape.RelativeColliderPosition;
 }
Exemplo n.º 2
0
 public Tuple <bool, Vector2> CheckForCollision(IColliderGroup other, Vector2 thisPosition, Vector2 otherPosition, Vector2 thisSize, Vector2 otherSize)
 {
     return(other.CheckColliderElement(Collider, otherPosition, thisPosition, otherSize, thisSize));
 }
Exemplo n.º 3
0
 public Tuple <bool, Vector2> CheckForCollision(IColliderGroup other, Vector2 thisPosition, Vector2 otherPosition, Vector2 thisSize, Vector2 otherSize)
 {
     return(new Tuple <bool, Vector2>(false, Vector2.Zero));
 }