setStageUnits#

Fully qualified name: isaacsim::foundation::usd::openusd::setStageUnits

void isaacsim::foundation::usd::openusd::setStageUnits(
int64_t stageId,
std::optional<float> metersPerUnit = std::nullopt,
std::optional<float> kilogramsPerUnit = std::nullopt,
)#

Sets the stage’s physical unit scale factors.

Parameters:
  • stageId – [in] Stage to modify.

  • metersPerUnit – [in] Meters per scene unit. Unchanged if nullopt.

  • kilogramsPerUnit – [in] Kilograms per mass unit. Unchanged if nullopt.