public IsMouseOver ( Microsoft.Xna.Framework.Ray mouseray, Matrix world ) : bool | ||
mouseray | Microsoft.Xna.Framework.Ray | |
world | Matrix | |
return | bool |
public bool IsMouseOver(Ray mouseray,Matrix world)
{
if (mouseray.Intersects((SphereModel.sphere.Meshes[0].BoundingSphere.Transform( Matrix.CreateScale(80) * world))) != null) { return true; }
else return false;
}