bulletbase.py
def removeLastBody(self): # {{{0
    "Remove the most recently added body. Will not remove the first body."
    nr = p.getNumBodies()
    if nr == 0:
      logger.warning("No body left to remove")
    else:
      bid = p.getBodyUniqueId(nr-1)
      if nr == 1:
        logger.warning("Refusing to remove last object {}".format(bid))
      else:
        self.removeBody(bodyId=bid)
Remove the most recently added body. Will not remove the first body.
Remove the most recently added body. Will not remove the first body.
Remove the most recently added body . Will not remove the first body .
def removeLastBody(self): 
    nr = p.getNumBodies()
    if nr == 0:
      logger.warning("No body left to remove")
    else:
      bid = p.getBodyUniqueId(nr-1)
      if nr == 1:
        logger.warning("Refusing to remove last object {}".format(bid))
      else:
        self.removeBody(bodyId=bid)
def removeLastBody ( self ) : nr = p . getNumBodies ( ) if nr == 0 : logger . warning ( "No body left to remove" ) else : bid = p . getBodyUniqueId ( nr - 1 ) if nr == 1 : logger . warning ( "Refusing to remove last object {}" . format ( bid ) ) else : self . removeBody ( bodyId = bid )
Remove the most recently added body.
Remove the most recently added body .
# {{{0 "Remove the most recently added body. Will not remove the first body."
self