Skip to content

Issue with collisions, possibly related to CGAL plugin and/or Tetra2TriangleTopologicalMapping #4346

Discussion options

You must be logged in to vote

Hi @aleblanc30

I detected several issues in your scene:

  • the time step you are using is too large. As a consequence, the collision detection had no time to catch any collision
  • the CollisionHeader() prefab, based on a RuleBasedContactManager for the collision response is not appropriate. We should actually update this prefab.
Let me know if the example below is working for you 👇
import Sofa
from stlib3.scene import ContactHeader
from stlib3.physics.rigid import Floor

# Units : mm and kg

def createScene(rootNode):
    
    rootNode.findData('dt').value = 0.001
    rootNode.findData('gravity').value = [0, 0, -9180] # gravity is disabled
    rootNode.addObject('VisualStyle',
            …

Replies: 6 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@hugtalbot
Comment options

@aleblanc30
Comment options

@aleblanc30
Comment options

Comment options

You must be logged in to vote
1 reply
@aleblanc30
Comment options

Comment options

You must be logged in to vote
6 replies
@aleblanc30
Comment options

@epernod
Comment options

@aleblanc30
Comment options

@aleblanc30
Comment options

@hugtalbot
Comment options

Comment options

You must be logged in to vote
2 replies
@aleblanc30
Comment options

@hugtalbot
Comment options

Answer selected by aleblanc30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants