parameters: (self, p)
docstring: Indicates that there was a left click at point p (world coordinates)
docstring_summary: Indicates that there was a left click at point p (world coordinates)
docstring_tokens: Indicates that there was a left click at point p ( world coordinates )
function: def MouseDown(self, p):
          """
          Indicates that there was a left click at point p (world coordinates)
          """
          if self.mouseJoint is not None:
              return
  
          # Create a mouse joint on the selected body (assuming it's dynamic)
          # Make a small box.
          aabb = b2AABB(lowerBound=p - (0.001, 0.001),
                        upperBound=p + (0.001, 0.001))
  
          # Query the world for overlapping shapes.
          query = fwQueryCallback(p)
          self.world.QueryAABB(query, aabb)
  
          if query.fixture:
              body = query.fixture.body
              # A body was selected, create the mouse joint
              self.mouseJoint = self.world.CreateMouseJoint(
                  bodyA=self.groundbody,
                  bodyB=body,
                  target=p,
                  maxForce=1000.0 * body.mass)
              body.awake = True
function_tokens: def MouseDown ( self , p ) : if self . mouseJoint is not None : return # Create a mouse joint on the selected body (assuming it's dynamic) # Make a small box. aabb = b2AABB ( lowerBound = p - ( 0.001 , 0.001 ) , upperBound = p + ( 0.001 , 0.001 ) ) # Query the world for overlapping shapes. query = fwQueryCallback ( p ) self . world . QueryAABB ( query , aabb ) if query . fixture : body = query . fixture . body # A body was selected, create the mouse joint self . mouseJoint = self . world . CreateMouseJoint ( bodyA = self . groundbody , bodyB = body , target = p , maxForce = 1000.0 * body . mass ) body . awake = True