Skip to content
Snippets Groups Projects
Commit 253247a8 authored by Cade Mallett's avatar Cade Mallett
Browse files

corrected movement of the robots for random number generator

parent ff1c057e
Branches
No related merge requests found
...@@ -466,7 +466,8 @@ class Robot_Movement_Generator: ...@@ -466,7 +466,8 @@ class Robot_Movement_Generator:
return self.x, self.y return self.x, self.y
def get_angular_velocity(self): def update_angular_velocity(self):
self.angular_velocity = self.max_angular_velocity
return self.angular_velocity return self.angular_velocity
def update_velocity(self): def update_velocity(self):
...@@ -474,7 +475,7 @@ class Robot_Movement_Generator: ...@@ -474,7 +475,7 @@ class Robot_Movement_Generator:
return self.velocity return self.velocity
def update_orientation(self, time_delta): def update_orientation(self, time_delta):
self.orientation += self.angular_velocity * time_delta self.orientation += self.update_angular_velocity() * time_delta
self.orientation = sanitize_angle(self.orientation) self.orientation = sanitize_angle(self.orientation)
return self.orientation return self.orientation
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment