Skip to content

Commit 0c07c82

Browse files
committed
- added an example scene
1 parent 136469f commit 0c07c82

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

data/scenes/ClothOnBunny.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"Name": "ClothCollisionScene1",
3+
"Simulation":
4+
{
5+
"timeStepSize": 0.005,
6+
"maxIterations" : 1,
7+
"subSteps": 2,
8+
"maxIterVel" : 5,
9+
"velocityUpdateMethod" : 0,
10+
"contactTolerance": 0.1,
11+
"triangleModelSimulationMethod": 2,
12+
"triangleModelBendingMethod": 2,
13+
"contactStiffnessRigidBody" : 1.0,
14+
"contactStiffnessParticleRigidBody": 100.0,
15+
"cloth_stiffness": 1.0,
16+
"cloth_bendingStiffness": 0.1,
17+
"cloth_xxStiffness": 1.0,
18+
"cloth_yyStiffness": 1.0,
19+
"cloth_xyStiffness": 1.0,
20+
"cloth_xyPoissonRatio": 0.3,
21+
"cloth_yxPoissonRatio": 0.3,
22+
"cloth_normalizeStretch": 0,
23+
"cloth_normalizeShear": 0
24+
},
25+
"TriangleModels": [
26+
{
27+
"id": 0,
28+
"geometryFile": "../models/plane_50x50.obj",
29+
"translation": [5,8,0],
30+
"rotationAxis": [1, 0, 0],
31+
"rotationAngle": 0.0,
32+
"scale": [10, 10, 10],
33+
"restitution" : 0.1,
34+
"friction" : 0.1
35+
}
36+
],
37+
"RigidBodies": [
38+
{
39+
"id": 1,
40+
"geometryFile": "../models/cube.obj",
41+
"flatShading": true,
42+
"isDynamic": 0,
43+
"density": 500,
44+
"translation": [0,0,0],
45+
"rotationAxis": [1, 0, 0],
46+
"rotationAngle": 0.0,
47+
"scale": [100, 1, 100],
48+
"restitution" : 0.6,
49+
"friction" : 0.0,
50+
"comment": "collisionObjectType = 1: Sphere, 2: Box, 3: Cylinder, 4: Torus, 5: SDF, 6: HollowSphere, 7: HollowBox",
51+
"collisionObjectType": 2,
52+
"collisionObjectScale": [100, 1, 100]
53+
},
54+
{
55+
"id": 2,
56+
"geometryFile": "../models/bunny_10k.obj",
57+
"comment": "collisionObjectFileName can contain the path of an SDF file or if it is empty, the simulator will generate an SDF using the mesh in the geometryFile",
58+
"collisionObjectFileName": "",
59+
"resolutionSDF": [40,40,40],
60+
"isDynamic": 1,
61+
"density": 500,
62+
"translation": [5,1,0],
63+
"rotationAxis": [1, 0, 0],
64+
"rotationAngle": 0.0,
65+
"scale": [4, 4, 4],
66+
"velocity": [0,0,0],
67+
"restitution" : 0.6,
68+
"friction" : 0.2,
69+
"comment": "collisionObjectType = 1: Sphere, 2: Box, 3: Cylinder, 4: Torus, 5: SDF, 6: HollowSphere, 7: HollowBox",
70+
"collisionObjectType": 5,
71+
"collisionObjectScale": [4, 4, 4]
72+
}
73+
]
74+
}
75+
76+

0 commit comments

Comments
 (0)