Skip to content

Commit 35ebae4

Browse files
Add scene attributes for Kamino assets (#4028)
1 parent 9eea44c commit 35ebae4

6 files changed

Lines changed: 41 additions & 11 deletions

File tree

newton/tests/assets/kamino/basics/box_on_plane.usda

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
upAxis = "Z"
99
)
1010

11-
def PhysicsScene "World"
11+
def PhysicsScene "World" (
12+
prepend apiSchemas = ["NewtonKaminoSceneAPI"]
13+
)
1214
{
1315
float physics:gravityMagnitude = 9.8067
1416
vector3f physics:gravityDirection = (0, 0, -1)
17+
uniform float newton:kamino:padmm:complementarityTolerance = 0.0001
18+
uniform float newton:kamino:padmm:dualTolerance = 0.0001
19+
uniform float newton:kamino:padmm:primalTolerance = 0.0001
1520
}
1621

1722
def Xform "box_on_plane"

newton/tests/assets/kamino/basics/box_pendulum.usda

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
upAxis = "Z"
99
)
1010

11-
def PhysicsScene "World"
11+
def PhysicsScene "World" (
12+
prepend apiSchemas = ["NewtonKaminoSceneAPI"]
13+
)
1214
{
13-
float physics:gravityMagnitude = 9.8067
15+
float physics:gravityMagnitude = 9.81
1416
vector3f physics:gravityDirection = (0, 0, -1)
17+
uniform float newton:kamino:padmm:complementarityTolerance = 0.0001
18+
uniform float newton:kamino:padmm:dualTolerance = 0.0001
19+
uniform float newton:kamino:padmm:primalTolerance = 0.0001
1520
}
1621

1722
def Xform "box_pendulum"

newton/tests/assets/kamino/basics/boxes_fourbar.usda

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
upAxis = "Z"
99
)
1010

11-
def PhysicsScene "World"
11+
def PhysicsScene "World" (
12+
prepend apiSchemas = ["NewtonKaminoSceneAPI"]
13+
)
1214
{
13-
float physics:gravityMagnitude = 9.8067
15+
float physics:gravityMagnitude = 9.81
1416
vector3f physics:gravityDirection = (0, 0, -1)
17+
uniform float newton:kamino:padmm:complementarityTolerance = 0.0001
18+
uniform float newton:kamino:padmm:dualTolerance = 0.0001
19+
uniform float newton:kamino:padmm:primalTolerance = 0.0001
1520
}
1621

1722
def Xform "boxes_fourbar"

newton/tests/assets/kamino/basics/boxes_hinged.usda

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
upAxis = "Z"
99
)
1010

11-
def PhysicsScene "World"
11+
def PhysicsScene "World" (
12+
prepend apiSchemas = ["NewtonKaminoSceneAPI"]
13+
)
1214
{
13-
float physics:gravityMagnitude = 9.8067
15+
float physics:gravityMagnitude = 9.81
1416
vector3f physics:gravityDirection = (0, 0, -1)
17+
uniform float newton:kamino:padmm:complementarityTolerance = 0.0001
18+
uniform float newton:kamino:padmm:dualTolerance = 0.0001
19+
uniform float newton:kamino:padmm:primalTolerance = 0.0001
1520
}
1621

1722
def Xform "boxes_hinged"

newton/tests/assets/kamino/basics/boxes_nunchaku.usda

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
upAxis = "Z"
99
)
1010

11-
def PhysicsScene "World"
11+
def PhysicsScene "World" (
12+
prepend apiSchemas = ["NewtonKaminoSceneAPI"]
13+
)
1214
{
13-
float physics:gravityMagnitude = 9.8067
15+
float physics:gravityMagnitude = 9.81
1416
vector3f physics:gravityDirection = (0, 0, -1)
17+
uniform float newton:kamino:padmm:complementarityTolerance = 0.0001
18+
uniform float newton:kamino:padmm:dualTolerance = 0.0001
19+
uniform float newton:kamino:padmm:primalTolerance = 0.0001
1520
}
1621

1722
def Xform "boxes_nunchaku"

newton/tests/assets/kamino/basics/cartpole.usda

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
upAxis = "Z"
99
)
1010

11-
def PhysicsScene "World"
11+
def PhysicsScene "World" (
12+
prepend apiSchemas = ["NewtonKaminoSceneAPI"]
13+
)
1214
{
13-
float physics:gravityMagnitude = 9.8067
15+
float physics:gravityMagnitude = 9.81
1416
vector3f physics:gravityDirection = (0, 0, -1)
17+
uniform float newton:kamino:padmm:complementarityTolerance = 0.0001
18+
uniform float newton:kamino:padmm:dualTolerance = 0.0001
19+
uniform float newton:kamino:padmm:primalTolerance = 0.0001
1520
}
1621

1722
def Xform "cartpole"

0 commit comments

Comments
 (0)