bulletbase.py
def removeBody(self, bodyId=None, bodyIndex=None): # {{{0
    "Remove a body by either ID or index"
    bid = None
    if bodyId is not None:
      bid = bodyId
    elif bodyIndex is not None:
      bid = p.getBodyUniqueId(bodyIndex)
    else:
      raise ValueError("Must specify a body to remove")
    if bid in self._bodies:
      self._bodies.remove(bid)
    p.removeBody(bid)
Remove a body by either ID or index
Remove a body by either ID or index
Remove a body by either ID or index
def removeBody(self, bodyId=None, bodyIndex=None): 
    bid = None
    if bodyId is not None:
      bid = bodyId
    elif bodyIndex is not None:
      bid = p.getBodyUniqueId(bodyIndex)
    else:
      raise ValueError("Must specify a body to remove")
    if bid in self._bodies:
      self._bodies.remove(bid)
    p.removeBody(bid)
def removeBody ( self , bodyId = None , bodyIndex = None ) : bid = None if bodyId is not None : bid = bodyId elif bodyIndex is not None : bid = p . getBodyUniqueId ( bodyIndex ) else : raise ValueError ( "Must specify a body to remove" ) if bid in self . _bodies : self . _bodies . remove ( bid ) p . removeBody ( bid )
Remove a body by either ID or index
Remove a body by either ID or index
# {{{0 "Remove a body by either ID or index"
self
bodyId
bodyIndex