setScale#

Fully qualified name: isaacsim::core::includes::transforms::setScale

inline void isaacsim::core::includes::transforms::setScale(
pxr::UsdPrim &prim,
pxr::GfVec3f pxBodyScale,
)#

Sets the scale of a USD prim.

Applies scaling to the prim’s local transform, with special handling for physics objects:

  • Only scales non-physics objects during simulation

  • Preserves existing transform components

  • Applies scale in local space

Note

During simulation, only non-physics objects can be scaled

Warning

Scaling physics objects during simulation may have unexpected results

Parameters:
  • prim[inout] USD prim to scale

  • pxBodyScale[in] Scale factors for x, y, and z axes