diff --git a/pyb_utils/named_tuples.py b/pyb_utils/named_tuples.py index 2cc2cbf..ba3fc65 100644 --- a/pyb_utils/named_tuples.py +++ b/pyb_utils/named_tuples.py @@ -71,7 +71,11 @@ def getDynamicsInfo(bodyUniqueId, linkIndex, physicsClientId=0): return DynamicsInfo( - *pyb.getDynamicsInfo(bodyUniqueId, linkIndex, physicsClientId) + *pyb.getDynamicsInfo( + bodyUniqueId=bodyUniqueId, + linkIndex=linkIndex, + physicsClientId=physicsClientId, + ) ) @@ -79,7 +83,11 @@ def getContactPoints( bodyA=-1, bodyB=-1, linkIndexA=-2, linkIndexB=-2, physicsClientId=0 ): points_raw = pyb.getContactPoints( - bodyA, bodyB, linkIndexA, linkIndexB, physicsClientId + bodyA=bodyA, + bodyB=bodyB, + linkIndexA=linkIndexA, + linkIndexB=linkIndexB, + physicsClientId=physicsClientId, ) return [ContactPoint(*point) for point in points_raw] @@ -88,12 +96,20 @@ def getClosestPoints( bodyA, bodyB, distance, linkIndexA=-2, linkIndexB=-2, physicsClientId=0 ): points_raw = pyb.getClosestPoints( - bodyA, bodyB, distance, linkIndexA, linkIndexB, physicsClientId + bodyA=bodyA, + bodyB=bodyB, + distance=distance, + linkIndexA=linkIndexA, + linkIndexB=linkIndexB, + physicsClientId=physicsClientId, ) return [ContactPoint(*point) for point in points_raw] def getConstraintInfo(constraintUniqueId, physicsClientId=0): return ConstraintInfo( - *pyb.getConstraintInfo(constraintUniqueId, physicsClientId) + *pyb.getConstraintInfo( + constraintUniqueId=constraintUniqueId, + physicsClientId=physicsClientId, + ) ) diff --git a/pyproject.toml b/pyproject.toml index 4fb3182..91ee72b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ line-length = 80 [tool.poetry] name = "pyb_utils" -version = "0.3.0" +version = "0.3.1" description = "Basic utilities for PyBullet, including collision detection, ghost (i.e. visual-only) objects, and cameras." authors = ["Adam Heins "] license = "MIT"