Skip to content

Commit

Permalink
Fix size of light visual (gazebosim#2947)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
  • Loading branch information
peci1 authored and scpeters committed Apr 19, 2021
1 parent 635a2d0 commit 4b44af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gazebo/rendering/Light.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ void Light::CreateVisual()

double angles[2];
double range = 0.2;
angles[0] = range * tan(outerAngle);
angles[1] = range * tan(innerAngle);
angles[0] = range * tan(outerAngle / 2);
angles[1] = range * tan(innerAngle / 2);

unsigned int i = 0;
this->dataPtr->line->AddPoint(ignition::math::Vector3d(0, 0, 0));
Expand Down

0 comments on commit 4b44af0

Please sign in to comment.