I have a mesh created with mesh = UsdGeom.Mesh.Define(stage, curPrimPath), and a physics material created with material = PhysicsMaterial(static_friction = 0.8, dynamic_friction = 0.8, restitution=0.0, prim_path=“/World/Physics_Materials/defaultMaterial”), how do I attach this material to the mesh I just created. Note I already made it a rigidbody with utils.setRigidBody(prim=mesh.GetPrim(), approximationShape=“convexHull”, kinematic=False) from omni.physx.scripts
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Add physics to a mesh from py code | 2 | 566 | February 26, 2024 | |
| Set Mass and PhysicalMaterial properties to Prim | 5 | 3587 | October 24, 2022 | |
| How to add physics to my own mesh with python code | 1 | 801 | March 3, 2024 | |
| Binding cloned prims to physics material in Orbit? | 3 | 310 | March 21, 2024 | |
| How to bind customized physics material to collider | 5 | 143 | September 18, 2025 | |
| Why PhysicsMaterial destroys the KLT bin? | 3 | 496 | April 19, 2023 | |
| Add physics to primitive through python scripting | 1 | 768 | August 16, 2023 | |
| Assigning PhysicsMaterials to the assembly part of a prim | 0 | 32 | December 2, 2025 | |
| Setting a PhysicsMaterial's Restitution and Friction Combine Modes | 1 | 1519 | August 16, 2022 | |
| Convert .obj mesh to usd with colliders | 2 | 1003 | September 8, 2023 |