|
| 1 | +#usda 1.0 |
| 2 | +( |
| 3 | + endTimeCode = 1 |
| 4 | + framesPerSecond = 24 |
| 5 | + metersPerUnit = 1 |
| 6 | + startTimeCode = 1 |
| 7 | + timeCodesPerSecond = 24 |
| 8 | + upAxis = "Y" |
| 9 | +) |
| 10 | + |
| 11 | +def Xform "World" |
| 12 | +{ |
| 13 | + def Xform "Axle" ( |
| 14 | + prepend apiSchemas = ["PhysicsRigidBodyAPI", "PhysicsArticulationRootAPI"] |
| 15 | + ) |
| 16 | + { |
| 17 | + matrix4d xformOp:transform:set_initial_pos = ( (1, 0, 0, 0), (0, 0.9999197811020019, -0.012666150201413267, 0), (0, 0.012666150201413267, 0.9999197811020019, 0), (0, 0.012296309694647789, 0.970723032951355, 1) ) |
| 18 | + uniform token[] xformOpOrder = ["xformOp:transform:set_initial_pos"] |
| 19 | + |
| 20 | + def Xform "Rod" ( |
| 21 | + prepend apiSchemas = ["PhysicsRigidBodyAPI"] |
| 22 | + ) |
| 23 | + { |
| 24 | + matrix4d xformOp:transform:set_initial_rod_pos = ( (1, 0, 0, 0), (0, 0.3255001489278845, 0.9455419890453967, 0), (0, -0.9455419890453967, 0.3255001489278845, 0), (0, 0.47277099452269833, -0.1627500744639423, 1) ) |
| 25 | + uniform token[] xformOpOrder = ["xformOp:transform:set_initial_rod_pos"] |
| 26 | + |
| 27 | + def Cylinder "Geometry" ( |
| 28 | + prepend apiSchemas = ["PhysicsCollisionAPI"] |
| 29 | + ) |
| 30 | + { |
| 31 | + token axis = "Z" |
| 32 | + float3[] extent = [(-0.01, -0.01, -0.5), (0.01, 0.01, 0.5)] |
| 33 | + double height = 1 |
| 34 | + double radius = 0.01 |
| 35 | + matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, -0.03546595561524429, 1) ) |
| 36 | + uniform token[] xformOpOrder = ["xformOp:transform"] |
| 37 | + } |
| 38 | + |
| 39 | + def PhysicsRevoluteJoint "HingeJoint" ( |
| 40 | + prepend apiSchemas = ["PhysicsActuatorAPI"] |
| 41 | + ) |
| 42 | + { |
| 43 | + rel physics:body0 = </World/Axle> |
| 44 | + rel physics:body1 = </World/Axle/Rod> |
| 45 | + point3f physics:localPos0 = (0, 0, 0) |
| 46 | + point3f physics:localPos1 = (0, 0, 0.5) |
| 47 | + quatf physics:localRot0 = (0, 1, 0, 0) |
| 48 | + quatf physics:localRot1 = (0, 1, 0, 0) |
| 49 | + } |
| 50 | + } |
| 51 | + |
| 52 | + def Cylinder "Geometry" ( |
| 53 | + prepend apiSchemas = ["PhysicsCollisionAPI"] |
| 54 | + ) |
| 55 | + { |
| 56 | + token axis = "Z" |
| 57 | + float3[] extent = [(-0.01, -0.01, -0.1), (0.01, 0.01, 0.1)] |
| 58 | + double height = 0.2 |
| 59 | + double radius = 0.01 |
| 60 | + matrix4d xformOp:transform = ( (0, 0, -1, 0), (0, 1, -0, 0), (1, 0, -0, 0), (0, 0, -0, 1) ) |
| 61 | + uniform token[] xformOpOrder = ["xformOp:transform"] |
| 62 | + } |
| 63 | + |
| 64 | + def PhysicsFixedJoint "FixedJoint" |
| 65 | + { |
| 66 | + rel physics:body0 = None |
| 67 | + rel physics:body1 = </World/Axle> |
| 68 | + } |
| 69 | + } |
| 70 | +} |
| 71 | + |
0 commit comments