Skip to content

Commit 8f17907

Browse files
committed
Use CCD collision for the example scene
1 parent 99e800d commit 8f17907

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

examples/Demos/fallingSOFA.scn

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747
<!-- This set the model used for contact behavior as Colomb's friction contact law using Lagrangian-based constraints -->
4848
<CollisionResponse name="ContactManager" response="FrictionContactConstraint" responseParams="mu=0.3" />
4949
<!-- This object is responsible for defining pairs of points used for contact simulation.
50-
Alarm distance and contact distance are key parameters: alarm distance is the distance at which the collision
51-
detection is being performed. The contact distance increases the contact distance between object, enforcing a 'skinning' behavior -->
52-
<NewProximityIntersection name="Intersection" alarmDistance="0.02" contactDistance="0.002" />
50+
The contact distance increases the contact distance between object, enforcing a 'skinning' behavior -->
51+
<CCDTightInclusionIntersection name="CCDTightInclusionIntersection" continuousCollisionType="FreeMotion" maxIterations="100" contactDistance="0.00001"/>
5352

5453
<!-- Non-simulated node used to create underlying deformable topology -->
5554
<Node name="BeamDomainFromGridTopology">
@@ -95,7 +94,7 @@
9594

9695
<!-- This uses triangles as colliding element. These triangular primitives are the triangles present in the topology
9796
For more information on collision models see : https://sofa-framework.github.io/doc/components/collision/geometry/collisionmodels/ -->
98-
<TriangleCollisionModel name="Collision" contactDistance="0.001" color="0.94117647058824 0.93725490196078 0.89411764705882" />
97+
<PointCollisionModel name="Collision" contactDistance="0.0" color="0.94117647058824 0.93725490196078 0.89411764705882" />
9998

10099
<!-- This is a mapping: it relates the position of this node to the one of the simulated node.
101100
The position of this node (the output of the mapping) is totally defined by the position of the input node
@@ -157,6 +156,6 @@
157156
4 5 6 4 6 7" />
158157
<MechanicalObject template="Vec3"/>
159158
<!-- Because it is neither simulated nor moving, we can speed the solver and collision detection by setting parameters moving="0" simulated="0" -->
160-
<TriangleCollisionModel name="CubeCM" contactDistance="0.001" moving="0" simulated="0" />
159+
<TriangleCollisionModel name="CubeCM" contactDistance="0.00001" moving="0" simulated="0" />
161160
</Node>
162161
</Node>

0 commit comments

Comments
 (0)