mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 14:10:11 +00:00
b645963879
Bullet C-API b3ChangeDynamicsInfoSetSpinningFriction/RollingFriction/Resitution b3PhysicsParamSetRestitutionVelocityThreshold, / pybullet.setPhysicsEngineParameter restitutionVelocityThreshold: if the velocity is below this threshhold, the restitution is zero (this prevents energy buildup at near-resting state) pybullet restitution.py example.
34 lines
801 B
XML
34 lines
801 B
XML
<?xml version="0.0" ?>
|
|
<robot name="urdf_robot">
|
|
<link name="baseLink">
|
|
<contact>
|
|
<restitution value="0.5" />
|
|
<rolling_friction value="0.001"/>
|
|
<spinning_friction value="0.001"/>
|
|
|
|
</contact>
|
|
|
|
<inertial>
|
|
<origin rpy="0 0 0" xyz="0 0 0"/>
|
|
<mass value="10.0"/>
|
|
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
|
|
</inertial>
|
|
<visual>
|
|
<origin rpy="0 0 0" xyz="0 0 0"/>
|
|
<geometry>
|
|
<mesh filename="textured_sphere_smooth.obj" scale="0.5 0.5 0.5"/>
|
|
</geometry>
|
|
<material name="white">
|
|
<color rgba="1 1 1 1"/>
|
|
</material>
|
|
</visual>
|
|
<collision>
|
|
<origin rpy="0 0 0" xyz="0 0 0"/>
|
|
<geometry>
|
|
<sphere radius="0.5"/>
|
|
</geometry>
|
|
</collision>
|
|
</link>
|
|
</robot>
|
|
|