forked from sofa-framework/sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2d.scn
42 lines (42 loc) · 2.81 KB
/
2d.scn
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
<Node dt="0.004" gravity="0 -10 0">
<VisualStyle displayFlags="showBehaviorModels showForceFields showCollisionModels showMappings" />
<EulerImplicit rayleighStiffness="0.1" rayleighMass="0.1" />
<CGLinearSolver iterations="25" tolerance="1e-05" threshold="1e-05"/>
<Node name="Cube1">
<MechanicalObject template="Rigid2d" position="0 10 0" velocity="0.1 1 -200" />
<UniformMass mass="1 1 0.83333" />
<Node name="Points">
<MechanicalObject template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" />
<RigidMapping />
<PlaneForceField draw="1" stiffness="10000" />
</Node>
</Node>
<Node name="Cube2">
<MechanicalObject template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="10" dx="2" />
<UniformMass totalmass="4" />
<PlaneForceField draw="1" stiffness="10000" />
<StiffSpringForceField template="Vec2d" name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<Node name="Cube3">
<MechanicalObject template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="10" dx="-2" />
<UniformMass totalmass="4" />
<PlaneForceField draw="1" stiffness="10000" />
<StiffSpringForceField name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<Node name="Cube4">
<MechanicalObject template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="8" dx="0" />
<UniformMass totalmass="4" />
<PlaneForceField draw="1" stiffness="10000" />
<StiffSpringForceField name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<Node name="Cube5">
<MechanicalObject template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="12" dx="0" />
<UniformMass totalmass="4" />
<PlaneForceField draw="1" stiffness="10000" />
<StiffSpringForceField name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<StiffSpringForceField name="link1" object1="@Cube1/Points" object2="@Cube2" spring="1 0 2000 1 1 2 3 2000 1 1 1 3 1000 1 1.414 2 0 1000 1 1.414" />
<StiffSpringForceField name="link2" object1="@Cube3" object2="@Cube1/Points" spring="1 0 2000 1 1 2 3 2000 1 1 1 3 1000 1 1.414 2 0 1000 1 1.414" />
<StiffSpringForceField name="link3" object1="@Cube1/Points" object2="@Cube4" spring="0 3 2000 1 1 1 2 2000 1 1 0 2 1000 1 1.414 1 3 1000 1 1.414" />
<StiffSpringForceField name="link4" object1="@Cube5" object2="@Cube1/Points" spring="0 3 2000 1 1 1 2 2000 1 1 0 2 1000 1 1.414 1 3 1000 1 1.414" />
</Node>