Skip to content

Commit

Permalink
fix orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo Jaunet committed Jul 30, 2019
1 parent 0580662 commit fddbd26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file removed assets/agent.png
Binary file not shown.
2 changes: 1 addition & 1 deletion js/trajectory.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function draw_agent_path(svg, pos, or) {
.attr('fill', '#a92234')
.attr('stroke', '#555555')
.attr('stroke-width', '1')
.attr('transform', 'translate(' + ((traj_x(pos[0]) - 15) + offx) + ',' + ((traj_y(pos[1]) - 15) + offy) + ') rotate(' + (0) + ' ' + (15) + ' ' + (15) + ')')
.attr('transform', 'translate(' + ((traj_x(pos[0]) - 15) + offx) + ',' + ((traj_y(pos[1]) - 15) + offy) + ') rotate(' + (360 - or) + ' ' + (15) + ' ' + (15) + ')')
}


Expand Down

0 comments on commit fddbd26

Please sign in to comment.