public MyTexture(Texture2D texture, float scale) { Texture = texture; Size = new Vector2(texture.Width, texture.Height); Scale = scale; Origin = Size/2.0f; CollisionSphere = new CollisionSphere(); }
public MyTexture(Texture2D texture, float scale) { Texture = texture; Size = new Vector2(texture.Width, texture.Height); Scale = scale; Origin = Size / 2.0f; CollisionSphere = new CollisionSphere(); }
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; }