bulletbase.py
def createCapsule(self, mass, pos, # {{{1
                    radii=None,
                    collider=None,
                    visualShape=None,
                    **kwargs):
    "Insert a new capsule into the world"
    if not (collider is None) ^ (radii is None):
      raise ValueError("Must pass either radii or collider")
    elif collider is not None:
      cid = collider
    elif radii is not None:
      cid = self.createCollision(p.GEOM_CAPSULE, radius=radii[0], height=radii[1])
    vid = _or(visualShape, -1)
    return self.createMultiBody(mass, cid, vid, pos, **kwargs)
Insert a new capsule into the world
Insert a new capsule into the world
Insert a new capsule into the world
def createCapsule(self, mass, pos, 
                    radii=None,
                    collider=None,
                    visualShape=None,
                    **kwargs):
    if not (collider is None) ^ (radii is None):
      raise ValueError("Must pass either radii or collider")
    elif collider is not None:
      cid = collider
    elif radii is not None:
      cid = self.createCollision(p.GEOM_CAPSULE, radius=radii[0], height=radii[1])
    vid = _or(visualShape, -1)
    return self.createMultiBody(mass, cid, vid, pos, **kwargs)
def createCapsule ( self , mass , pos , radii = None , collider = None , visualShape = None , ** kwargs ) : if not ( collider is None ) ^ ( radii is None ) : raise ValueError ( "Must pass either radii or collider" ) elif collider is not None : cid = collider elif radii is not None : cid = self . createCollision ( p . GEOM_CAPSULE , radius = radii [ 0 ] , height = radii [ 1 ] ) vid = _or ( visualShape , - 1 ) return self . createMultiBody ( mass , cid , vid , pos , ** kwargs )
Insert a new capsule into the world
Insert a new capsule into the world
# {{{1 "Insert a new capsule into the world"
self
mass
pos
radii
collider
visualShape