Exemplo n.º 1
0
 public MyTexture(Texture2D texture, float scale)
 {
     Texture = texture;
     Size = new Vector2(texture.Width, texture.Height);
     Scale = scale;
     Origin = Size/2.0f;
     CollisionSphere = new CollisionSphere();
 }
Exemplo n.º 2
0
 public MyTexture(Texture2D texture, float scale)
 {
     Texture         = texture;
     Size            = new Vector2(texture.Width, texture.Height);
     Scale           = scale;
     Origin          = Size / 2.0f;
     CollisionSphere = new CollisionSphere();
 }
Exemplo n.º 3
0
 public bool Intersects(CollisionSphere sphere)
 {
     return(MyMath.Distance(this.Center, sphere.Center) < this.Radius + sphere.Radius);
 }
Exemplo n.º 4
0
 public bool Intersects(CollisionSphere sphere)
 {
     return MyMath.Distance(this.Center, sphere.Center) < this.Radius + sphere.Radius;
 }