Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/CogitoNTNU/CrawlAI
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasfremming committed Nov 3, 2024
2 parents 7e43373 + 5ff9ca6 commit 1426092
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/agent_parts/motorjoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def render(self, screen, body_a, body_b):
pos_a_world = body_a.local_to_world(self.pivot.anchor_a)
# Draw a line connecting the two bodies
pygame.draw.circle(
screen,
(255, 0, 0),
(int(pos_a_world.x),
surface=screen,
color=(255, 0, 0),
point=(int(pos_a_world.x),
int(pos_a_world.y)),
3)
radius=3)

def get_angle(self):
"""Get the angle of the motor joint."""
return self.pivot.angle

0 comments on commit 1426092

Please sign in to comment.