public static bool CollidingWithMouse(this Body @this, WorldRenderLayer layer) { var pos = layer.Camera.TargetToWorld(layer.ScreenToTarget(ArtemisEngine.Mouse.PositionVector)); return @this.FixtureList.Any(f => f.TestPoint(ref pos)); }
public static bool CollidingWithMouse(this Body @this, WorldRenderLayer layer) { var pos = layer.Camera.TargetToWorld(layer.ScreenToTarget(ArtemisEngine.Mouse.PositionVector)); return(@this.FixtureList.Any(f => f.TestPoint(ref pos))); }