Exemple #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();
 }
Exemple #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();
 }
Exemple #3
0
 public bool Intersects(CollisionSphere sphere)
 {
     return(MyMath.Distance(this.Center, sphere.Center) < this.Radius + sphere.Radius);
 }
 public bool Intersects(CollisionSphere sphere)
 {
     return MyMath.Distance(this.Center, sphere.Center) < this.Radius + sphere.Radius;
 }