Skip to content

Commit 158cd83

Browse files
authored
Merge branch 'sdf12' into ahcorde/usd_to_sdf/fix_rigid_body
2 parents 6129764 + 9999f55 commit 158cd83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

usd/src/usd_parser/USDPhysics.cc

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ namespace usd
6060
{
6161
magnitude = magnitude * _metersPerUnit;
6262
}
63+
else
64+
{
65+
// Use the default value for the gravity if it's not defined.
66+
magnitude = 9.8f;
67+
}
6368
}
6469
_world.SetGravity(worldGravity * magnitude);
6570
}

0 commit comments

Comments
 (0)