File size: 1,935 Bytes
c7ec147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#usda 1.0
(
    defaultPrim = "asset"
    metersPerUnit = 1
    upAxis = "Z"
)

def Xform "asset" (
    prepend apiSchemas = ["PhysicsRigidBodyAPI", "PhysicsMassAPI", "PhysxRigidBodyAPI", "MaterialBindingAPI"]
)
{
    rel material:binding:physics = </asset/PhysicsMaterial> (
        bindMaterialAs = "strongerThanDescendants"
    )
    bool physics:kinematicEnabled = 0
    float physics:mass = 0.165
    int physxRigidBody:solverPositionIterationCount = 16

    def Material "PhysicsMaterial" (
        prepend apiSchemas = ["PhysicsMaterialAPI"]
    )
    {
        float physics:dynamicFriction = 0.65
        float physics:restitution = 0
        float physics:staticFriction = 0.8
    }

    def "Source" (
        prepend references = @../playground_real/d1_robocasa/cereal_box.usdc@
    )
    {
        double3 xformOp:translate = (0, 0, 0)
        uniform token[] xformOpOrder = ["xformOp:translate"]
    }

    def Cube "box_1" (
        prepend apiSchemas = ["MaterialBindingAPI", "PhysicsCollisionAPI", "PhysxCollisionAPI"]
    )
    {
        rel material:binding = </asset/Looks/white>
        float physxCollision:contactOffset = 0.001
        float physxCollision:restOffset = 0
        double size = 1
        token visibility = "invisible"
        float3 xformOp:scale = (0.11139876, 0.030257428, 0.18)
        double3 xformOp:translate = (0, 0, 0.09)
        uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
    }

    def "Looks"
    {
        def Material "white"
        {
            token outputs:surface.connect = </asset/Looks/white/Surface.outputs:surface>

            def Shader "Surface"
            {
                uniform token info:id = "UsdPreviewSurface"
                color3f inputs:diffuseColor = (0.86, 0.85, 0.8)
                float inputs:metallic = 0
                float inputs:roughness = 0.6
                token outputs:surface
            }
        }
    }
}