Skip to content

Commit 9999f55

Browse files
authored
USD to SDF: Fixed gravity magnitude (#888)
Signed-off-by: ahcorde <ahcorde@gmail.com>
1 parent 17764dd commit 9999f55

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)