File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/experimental/usd/plugins/mjcf Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -555,14 +555,17 @@ class ModelWriter {
555
555
}
556
556
557
557
pxr::GfVec3f gravity (spec_->option .gravity [0 ], spec_->option .gravity [1 ],
558
- spec_->option .gravity [2 ]);
559
- // Normalize will normalize gravity in place and return the magnitude before normalization.
558
+ spec_->option .gravity [2 ]);
559
+ // Normalize will normalize gravity in place and return the magnitude before
560
+ // normalization.
560
561
float gravity_magnitude = gravity.Normalize ();
561
562
562
563
WriteUniformAttribute (physics_scene_path, pxr::SdfValueTypeNames->Float ,
563
- pxr::UsdPhysicsTokens->physicsGravityMagnitude , gravity_magnitude);
564
+ pxr::UsdPhysicsTokens->physicsGravityMagnitude ,
565
+ gravity_magnitude);
564
566
WriteUniformAttribute (physics_scene_path, pxr::SdfValueTypeNames->Vector3f ,
565
- pxr::UsdPhysicsTokens->physicsGravityDirection , gravity);
567
+ pxr::UsdPhysicsTokens->physicsGravityDirection ,
568
+ gravity);
566
569
567
570
pxr::GfVec3d wind (spec_->option .wind [0 ], spec_->option .wind [1 ],
568
571
spec_->option .wind [2 ]);
You can’t perform that action at this time.
0 commit comments