We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf41f4 commit dc8ada7Copy full SHA for dc8ada7
custom_gz_plugins/src/DayLightManager/DayLightManager.cc
@@ -254,7 +254,7 @@ void gz::sim::plugins::DayLightManager::Setup(gz::sim::EntityComponentManager &_
254
</model>
255
</sdf>
256
)");
257
-
+
258
// Insert sun_sphere model
259
gz::msgs::EntityFactory sunSphereSpawnEntity;
260
gz::msgs::Boolean sunSphereSpawnRes;
@@ -317,7 +317,7 @@ void gz::sim::plugins::DayLightManager::SetSunPosition()
317
318
// Update sun coordinates
319
this->_x_coordinate = this->_radius * cos(alpha) * cos(theta) + this->_x_bias;
320
- this->_y_coordinate = this->_radius * cos(alpha) * sin(theta) + this->_y_bias;
+ this->_y_coordinate = this->_radius * cos(alpha) * -1* sin(theta) + this->_y_bias;
321
this->_z_coordinate = this->_radius * sin(alpha);
322
323
// Set new sun position
0 commit comments