Marco3jp / GameForMeProject

The repository name is a tentative name. The concept is as it is in this title.
MIT License
0 stars 0 forks source link

壁が360度を超えているときにダメそう #4

Open Marco3jp opened 2 years ago

Marco3jp commented 2 years ago

https://github.com/Marco3jp/GameForMeProject/blob/14cfa0920abc312e9c5138a30e863eaaa473d6af/src/service/reflection.ts#L14-L16

Marco3jp commented 2 years ago

壁も

const correctedWallAngle = wall.angle % 360

ってしてあげたほうが安全かも