-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
UnitySensors/Assets/UnitySensors/Editor/LiDAR/ScanPatternGenerator.cs
Lines 174 to 183 in ebc7105
| for (int azimuth = 0; azimuth < _azimuthAngleResolution; azimuth++) | |
| { | |
| if (_direction == Direction.CCW) azimuth = _azimuthAngleResolution - 1 - azimuth; | |
| float azimuthAngle = Mathf.Lerp(_minAzimuthAngle, _maxAzimuthAngle, (float)azimuth / _azimuthAngleResolution); | |
| foreach (float zenithAngle in _zenithAngles) | |
| { | |
| scan.scans[index] = Quaternion.Euler(-zenithAngle, azimuthAngle, 0) * Vector3.forward; | |
| index++; | |
| } | |
| } |
Loop variables "azimuth" is rewritten in the for statement. (Line 176)
This will cause an error when "_direction" value is set to "Direction.CCW".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working