File size: 2,150 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 69 70 71 72 73 74 75 | #usda 1.0
(
defaultPrim = "asset"
metersPerUnit = 1
upAxis = "Z"
)
def Xform "asset" (
prepend apiSchemas = ["PhysicsRigidBodyAPI", "PhysicsMassAPI", "PhysxRigidBodyAPI", "MaterialBindingAPI", "CollectionAPI:appearance"]
)
{
rel collection:appearance:includes = </asset/Normalized/model>
rel material:binding:collection:appearance = [
</asset.collection:appearance>,
</asset/Looks/blue>,
] (
bindMaterialAs = "strongerThanDescendants"
)
rel material:binding:physics = </asset/PhysicsMaterial> (
bindMaterialAs = "strongerThanDescendants"
)
bool physics:kinematicEnabled = 0
float physics:mass = 0.12
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 Xform "Normalized"
{
float3 xformOp:scale = (0.7223749, 0.72237486, 0.8510116)
double3 xformOp:translate = (0.000018945035864895457, -7.534956691772508e-8, -0.00008070835561793905)
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
def "model" (
delete apiSchemas = ["PhysicsRigidBodyAPI", "PhysicsMassAPI"]
prepend payload = @../vomp/plate_small/plate_small.usd@
)
{
over "geometry"
{
over "collision_mesh" (
delete apiSchemas = ["PhysicsMassAPI"]
)
{
}
}
}
}
def "Looks"
{
def Material "blue"
{
token outputs:surface.connect = </asset/Looks/blue/Surface.outputs:surface>
def Shader "Surface"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor = (0.035, 0.43, 0.7)
float inputs:metallic = 0
float inputs:roughness = 0.6
token outputs:surface
}
}
}
}
|