bullet3/examples/pybullet
Erwin Coumans 6afa0a463d unsupported: expose collisionMargin to changeDynamics/getDynamicsInfo.
add cube_convex.urdf for testing this collisionMargin. Test script:
import pybullet as p
import time
p.connect(p.GUI)
plane = p.loadURDF("plane_implicit.urdf")
cube = p.loadURDF("cube_convex.urdf",[0,0,1])
p.setGravity(0,0,-10)
while (1):
	p.stepSimulation()
	pts = p.getContactPoints()
	p.changeDynamics(plane,-1,collisionMargin=0.3)
	p.changeDynamics(cube,-1,collisionMargin=0.3)
	print("===================")
	print("cube pos=", p.getBasePositionAndOrientation(cube)[0])
	print("margin=", p.getDynamicsInfo(plane,-1)[11])
	#time.sleep(1./10.)
2020-02-14 17:36:40 -08:00
..
examples example how to create a video using PyBullet using GUI mode with ffmpeg, synchronizing video with stepSimulation at specific frame rate (240 Hz for example) 2020-01-11 13:06:45 -08:00
gym add pendulum of 5 links 2020-02-12 13:05:51 -08:00
notebooks add HelloPyBullet notebook 2018-02-11 06:58:45 -08:00
numpy add yapf style and apply yapf to format all Python files 2019-04-27 07:31:15 -07:00
tensorflow add yapf style and apply yapf to format all Python files 2019-04-27 07:31:15 -07:00
unittests Adds an option to syncUserData to specify the bodies for which to sync. 2020-01-23 14:46:33 +01:00
unity3d update autogenerated NativeMethods.cs from latest PhysicsClientC_Api.h 2018-01-31 09:07:31 -08:00
CMakeLists.txt fixes for RemoteGUIHelper 2019-06-15 10:30:48 -07:00
premake4.lua allow to compile using clang-cl on visual studio (disable SSE) 2019-12-11 13:07:53 -08:00
pybullet.c unsupported: expose collisionMargin to changeDynamics/getDynamicsInfo. 2020-02-14 17:36:40 -08:00