WinteringAsch / OldGraduationThesisPaper

0 stars 0 forks source link

How to implement direction in Grid World #3

Open WinteringAsch opened 6 years ago

WinteringAsch commented 6 years ago

Divide the angle into 15 degrees, naming from 0 to 23. (East is 0, North is 6, West is 12, South is 18) Turn left : present direction + 1 mod 24 Turn right : present direction -1, if newdirec == -1, newdirect = 23.

New Problem is, How to implement this in grid World?

WinteringAsch commented 6 years ago

tangent values of each angle 15 degrees : 0.268 30 degrees : 0.577 45 degrees : 1 60 degrees : 1.732 75 degrees : 3.732