All Classes Files Functions Variables Pages
metrics.h File Reference

Return stage's authored kilogramsPerUnit, or 1.0 if unauthored. More...

+ Include dependency graph for metrics.h:

Go to the source code of this file.

Functions

USDPHYSICS_API double UsdPhysicsGetStageKilogramsPerUnit (const UsdStageWeakPtr &stage)
 
USDPHYSICS_API bool UsdPhysicsStageHasAuthoredKilogramsPerUnit (const UsdStageWeakPtr &stage)
 Return whether stage has an authored kilogramsPerUnit. More...
 
USDPHYSICS_API bool UsdPhysicsSetStageKilogramsPerUnit (const UsdStageWeakPtr &stage, double kilogramsPerUnit)
 Author stage's kilogramsPerUnit. More...
 

Detailed Description

Return stage's authored kilogramsPerUnit, or 1.0 if unauthored.

Definition in file metrics.h.

Function Documentation

USDPHYSICS_API bool UsdPhysicsSetStageKilogramsPerUnit ( const UsdStageWeakPtr &  stage,
double  kilogramsPerUnit 
)

Author stage's kilogramsPerUnit.

Returns
true if kilogramsPerUnit was successfully set. The stage's UsdEditTarget must be either its root layer or session layer.
USDPHYSICS_API bool UsdPhysicsStageHasAuthoredKilogramsPerUnit ( const UsdStageWeakPtr &  stage)

Return whether stage has an authored kilogramsPerUnit.