↓一般的な当たり判定の作り方
http://blog.livedoor.jp/toropippi/archives/692745.html