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