diff options
author | erwincoumans <erwincoumans@google.com> | 2020-07-30 11:34:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 11:34:39 -0700 |
commit | 5143403681a42b44485d142a24ed709caff802c0 (patch) | |
tree | e71d829087b429e4935610d1d7d5587160a3745b | |
parent | 579115cf9f8c0790e527081fecefcec5735c865e (diff) | |
parent | fa0d452651ce8091f86c9ebdcba9436aad365cd0 (diff) | |
download | bullet3-5143403681a42b44485d142a24ed709caff802c0.tar.gz |
Merge pull request #2956 from xhan0619/demo-fix
Initialize proper collision margin for deformable_ball.py
-rw-r--r-- | examples/pybullet/examples/deformable_ball.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pybullet/examples/deformable_ball.py b/examples/pybullet/examples/deformable_ball.py index ffda4e6b7..dea6bc51f 100644 --- a/examples/pybullet/examples/deformable_ball.py +++ b/examples/pybullet/examples/deformable_ball.py @@ -14,7 +14,7 @@ planeId = p.loadURDF("plane.urdf", [0,0,-2],planeOrn) boxId = p.loadURDF("cube.urdf", [0,3,2],useMaximalCoordinates = True) -ballId = p.loadSoftBody("ball.vtk", basePosition = [0,0,-1], scale = 0.5, mass = 0.1, useNeoHookean = 1, NeoHookeanMu = 20, NeoHookeanLambda = 20, NeoHookeanDamping = 0.001, useSelfCollision = 1, frictionCoeff = .5) +ballId = p.loadSoftBody("ball.vtk", basePosition = [0,0,-1], scale = 0.5, mass = 0.1, useNeoHookean = 1, NeoHookeanMu = 20, NeoHookeanLambda = 20, NeoHookeanDamping = 0.001, useSelfCollision = 1, frictionCoeff = .5, collisionMargin = 0.006) p.setTimeStep(0.001) p.setPhysicsEngineParameter(sparseSdfVoxelSize=0.25) p.setRealTimeSimulation(1) |