implement rudimentary contact callback. Does PhysX have a way to report ALL contact points, every frame, so we can update contact forces etc, and report all contacts?
This commit is contained in:
@@ -45,5 +45,7 @@ while (1):
|
||||
p.setJointMotorControl2(door,1,p.POSITION_CONTROL, targetPosition = angle, positionGain=10.1, velocityGain=1, force=11.001)
|
||||
else:
|
||||
p.setJointMotorControl2(door,1,p.VELOCITY_CONTROL, targetVelocity=1, force=1011)
|
||||
contacts = p.getContactPoints()
|
||||
print("contacts=",contacts)
|
||||
p.stepSimulation()
|
||||
time.sleep(1./240.)
|
||||
|
||||
Reference in New Issue
Block a user