@@ -87,7 +87,9 @@ class gz::sim::systems::AirFlowPrivate
8787
8888 // / \brief Update air flow sensor data based on physics data
8989 // / \param[in] _ecm Immutable reference to ECM.
90- public: void UpdateAirFlows (const EntityComponentManager &_ecm, gz::math::Vector3d wind);
90+ // / \param[in] wind The wind conditions in the environment
91+ public: void UpdateAirFlows (const EntityComponentManager &_ecm,
92+ gz::math::Vector3d wind);
9193
9294 // / \brief Remove air flow sensors if their entities have been removed
9395 // / from simulation.
@@ -146,13 +148,13 @@ void AirFlow::PostUpdate(const UpdateInfo &_info,
146148 if (!_info.paused )
147149 {
148150
149-
150- gz::math::Vector3d wind{0 ,0 ,0 };
151+ gz::math::Vector3d wind{0 , 0 , 0 };
151152 // get wind as a component from the _ecm
152153 if (_ecm.EntityByComponents (components::Wind ()) != kNullEntity ){
153154
154155 Entity windEntity = _ecm.EntityByComponents (components::Wind ());
155- auto windLinearVel = _ecm.Component <components::WorldLinearVelocity>(windEntity);
156+ auto windLinearVel = _ecm.Component <components::WorldLinearVelocity>
157+ (windEntity);
156158
157159 if (windLinearVel != nullptr ){
158160 wind = windLinearVel->Data ();
@@ -268,7 +270,8 @@ void AirFlowPrivate::CreateSensors(const EntityComponentManager &_ecm)
268270}
269271
270272// ////////////////////////////////////////////////
271- void AirFlowPrivate::UpdateAirFlows (const EntityComponentManager &_ecm, math::Vector3d wind)
273+ void AirFlowPrivate::UpdateAirFlows (const EntityComponentManager &_ecm,
274+ math::Vector3d wind)
272275{
273276 GZ_PROFILE (" AirFlowPrivate::UpdateAirFlows" );
274277 _ecm.Each <components::AirFlowSensor, components::WorldPose>(
@@ -287,8 +290,7 @@ void AirFlowPrivate::UpdateAirFlows(const EntityComponentManager &_ecm, math::Ve
287290
288291 if (wind.IsFinite ()){
289292 it->second ->SetWindVelocity (wind);
290- } else
291- {
293+ } else {
292294 gzwarn << " Wind velocity is ignored. Contains NaN" ;
293295 it->second ->SetWindVelocity (gz::math::Vector3d::Zero);
294296 }
0 commit comments